Throwable matcher to be used with {@link #isThrowable(Class, Matcher)}
@see #isThrowable(Class, Matcher)
@param message the message
@param <T> the throwable type
@return the matcher
774158
public static <T extends Throwable> Matcher<T> withMessage(String message) {
        return IsThrowable.withMessage(message);
    }
1190975
public static ExecutionResult failure(String message) {
        ExecutionResult executionResult = new ExecutionResult();
        executionResult.withErrorMessages(message);
        return executionResult;
    }
860619
private static String getUsefulMessage(Throwable throwable) {
        while(isBoring(throwable)) {
            throwable = throwable.getCause();
        }

        String message = throwable.getMessage();
        if (message == null) {
            message = throwable.getClass().getName();
        }
        return message;
    }
468862
protected static AVIMMessage parseTypedMessage(AVIMMessage message) {
    int messageType = getMessageType(message.getContent());
    if (messageType != 0) {
      Class<? extends AVIMTypedMessage> clazz = messageTypesRepository.get(messageType);
      if (clazz != null) {
        try {
          AVIMMessage typedMessage = clazz.newInstance();
          typedMessage.setConversationId(message.getConversationId());
          typedMessage.setFrom(message.getFrom());
          typedMessage.setDeliveredAt(message.getDeliveredAt());
          typedMessage.setTimestamp(message.getTimestamp());
          typedMessage.setContent(message.getContent());
          typedMessage.setMessageId(message.getMessageId());
          typedMessage.setMessageStatus(message.getMessageStatus());
          typedMessage.setMessageIOType(message.getMessageIOType());
          typedMessage.uniqueToken = message.uniqueToken;
          typedMessage.currentClient = message.currentClient;
          typedMessage.mentionAll = message.mentionAll;
          typedMessage.mentionList = message.mentionList;
          message = typedMessage;
        } catch (Exception e) {
        }
      }
    }
    return message;
  }
468189
public <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type, final String message) {
        if (!superType.isAssignableFrom(type)) {
            fail(message);
        }
        return type;
    }
1356307
private synchronized void logThrowable(final Level level,
			final String message, final Throwable t)
	{

		if (t != null) {
			log("\r\n[" + System.currentTimeMillis() + "]\t" + message);
			log("\r\n" + t);
			log("\r\n");

			for (StackTraceElement st : t.getStackTrace()) {
				log("\t" + st.toString() + "\r\n");
			}

			Throwable c = t.getCause();
			if (c != null) {

				log("Caused by:\t" + c + "\r\n");

				for (StackTraceElement st : c.getStackTrace()) {
					log("\t" + st.toString() + "\r\n");
				}
			}

			log("\r\n");
			this.flush();
		}
	}
250390
public static <M extends net.morimekta.providence.PMessage<M, F>, F extends net.morimekta.providence.descriptor.PField>
    Any wrapMessage(@javax.annotation.Nonnull M message) {
        return wrapMessage(message, new net.morimekta.providence.serializer.BinarySerializer());
    }
209944
public static ReplyObject error(String message){
		ReplyObject ret = new ReplyObject();
		ret.success = false;
		ret.message = message;
		return ret;
	}
172599
public static <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type, final String message) {
        return INSTANCE.isAssignableFrom(superType, type, message);
    }
502771
public static <T extends FieldDescription> ElementMatcher.Junction<T> fieldType(ElementMatcher<? super TypeDescription> matcher) {
        return genericFieldType(erasure(matcher));
    }
335140
public Collection<Exception> error(final Object message, final Throwable error) {
        return Lists.reverse(errorHandlers).stream()
                .flatMap(f -> f.apply(message, error).map(Stream::of).orElse(Stream.empty()))
                .collect(Collectors.toList());
    }
1018646
public static <T extends Message> Marshaller<T> marshaller(final T defaultInstance) {
    return ProtoLiteUtils.marshaller(defaultInstance);
  }
258851
public static int w(String message, Throwable throwable) {
        return logger(QuickUtils.WARN, message, throwable);
    }
436530
@Factory
    public static <T extends Throwable> Matcher<T> hasCause(final Matcher<?> matcher) {
        return new ThrowableCauseMatcher<T>(matcher);
    }
1209279
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) {
        if (isEnabled(level, THROWING_MARKER, (Object) null, null)) {
            logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t);
        }
        return t;
    }
746115
public static <T extends ParameterDescription> ElementMatcher.Junction<T> hasGenericType(ElementMatcher<? super TypeDescription.Generic> matcher) {
        return new MethodParameterTypeMatcher<T>(matcher);
    }
841738
@Override
    public Message newMessage(final String message) {
        final ReusableSimpleMessage result = getSimple();
        result.set(message);
        return result;
    }