class ThrowableClassifier {

	public static ThrowableType getThrowableType(Throwable cause) {
		final ThrowableAnnotation annotation = cause.getClass().getAnnotation(ThrowableAnnotation.class);
		return annotation == null ? ThrowableType.RecoverableError : annotation.value();
	}

}