test_class.declarator: MESSAGE = "message"
test_class.modifier: private static final
test_class.original_string: private static final String MESSAGE = "message";
test_class.type: String
test_class.var_name: MESSAGE
test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.file: neo-starter/src/test/java/eu/neoteric/starter/mvc/errorhandling/handler/ExceptionHandlerBindingTest.java
test_class.identifier: ExceptionHandlerBindingTest
test_case.body: @Test
      public void shouldThrowException_WhenNotRestExceptionProviderAnnotated() throws Exception {
          expectedException.expect(IllegalStateException.class);
          ExceptionHandlerBinding.fromAnnotatedClass(ExceptionProviderNotAnnotated.class);
      }
test_case.class_method_signature: ExceptionHandlerBindingTest.shouldThrowException_WhenNotRestExceptionProviderAnnotated()
test_case.full_signature: @Test public void shouldThrowException_WhenNotRestExceptionProviderAnnotated()
test_case.identifier: shouldThrowException_WhenNotRestExceptionProviderAnnotated
test_case.invocations: expect fromAnnotatedClass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowException_WhenNotRestExceptionProviderAnnotated()
focal_class.declarator: exceptionHandlerBeanName
focal_class.modifier: private final
focal_class.original_string: private final String exceptionHandlerBeanName;
focal_class.type: String
focal_class.var_name: exceptionHandlerBeanName
focal_class.declarator: exceptionHandlerClass
focal_class.modifier: private final
focal_class.original_string: private final Class<?> exceptionHandlerClass;
focal_class.type: Class<?>
focal_class.var_name: exceptionHandlerClass
focal_class.declarator: exceptionClass
focal_class.modifier: private final
focal_class.original_string: private final Class<? extends Exception> exceptionClass;
focal_class.type: Class<? extends Exception>
focal_class.var_name: exceptionClass
focal_class.declarator: logger
focal_class.modifier: private final
focal_class.original_string: private final Logger logger;
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: logLevel
focal_class.modifier: private final
focal_class.original_string: private final Level logLevel;
focal_class.type: Level
focal_class.var_name: logLevel
focal_class.declarator: cause
focal_class.modifier: private final
focal_class.original_string: private final String cause;
focal_class.type: String
focal_class.var_name: cause
focal_class.declarator: httpStatus
focal_class.modifier: private final
focal_class.original_string: private final HttpStatus httpStatus;
focal_class.type: HttpStatus
focal_class.var_name: httpStatus
focal_class.declarator: suppressStacktrace
focal_class.modifier: private final
focal_class.original_string: private final boolean suppressStacktrace;
focal_class.type: boolean
focal_class.var_name: suppressStacktrace
focal_class.declarator: suppressException
focal_class.modifier: private final
focal_class.original_string: private final boolean suppressException;
focal_class.type: boolean
focal_class.var_name: suppressException
focal_class.file: neo-starter/src/main/java/eu/neoteric/starter/mvc/errorhandling/handler/ExceptionHandlerBinding.java
focal_class.identifier: ExceptionHandlerBinding
focal_class.class_method_signature: ExceptionHandlerBinding.fromAnnotatedClass(Class<?> exceptionHandlerClass)
focal_class.full_signature: public static ExceptionHandlerBinding fromAnnotatedClass(Class<?> exceptionHandlerClass)
focal_class.identifier: fromAnnotatedClass
focal_class.modifiers: public static
focal_class.parameters: (Class<?> exceptionHandlerClass)
focal_class.return: ExceptionHandlerBinding
focal_class.signature: ExceptionHandlerBinding fromAnnotatedClass(Class<?> exceptionHandlerClass)
focal_class.class_method_signature: ExceptionHandlerBinding.getHandlerBeanName(Class<?> exceptionHandlerClass)
focal_class.full_signature: private static String getHandlerBeanName(Class<?> exceptionHandlerClass)
focal_class.identifier: getHandlerBeanName
focal_class.modifiers: private static
focal_class.parameters: (Class<?> exceptionHandlerClass)
focal_class.return: String
focal_class.signature: String getHandlerBeanName(Class<?> exceptionHandlerClass)
focal_class.class_method_signature: ExceptionHandlerBinding.getExceptionClass(Class<?> clazz)
focal_class.full_signature: @SuppressWarnings("unchecked") private static Class<? extends Exception> getExceptionClass(Class<?> clazz)
focal_class.identifier: getExceptionClass
focal_class.modifiers: @SuppressWarnings("unchecked") private static
focal_class.parameters: (Class<?> clazz)
focal_class.return: Class<? extends Exception>
focal_class.signature: Class<? extends Exception> getExceptionClass(Class<?> clazz)
focal_method.body: public static ExceptionHandlerBinding fromAnnotatedClass(Class<?> exceptionHandlerClass) {
          Assert.notNull(exceptionHandlerClass);
          RestExceptionHandlerProvider annotation = exceptionHandlerClass.getAnnotation(RestExceptionHandlerProvider.class);
          Assert.state(annotation != null, exceptionHandlerClass + " class in not annotated with @RestExceptionHandlerProvider");
          return builder()
                  .exceptionHandlerClass(exceptionHandlerClass)
                  .logger(LoggerFactory.getLogger(exceptionHandlerClass))
                  .exceptionClass(getExceptionClass(exceptionHandlerClass))
                  .exceptionHandlerBeanName(getHandlerBeanName(exceptionHandlerClass))
                  .httpStatus(annotation.httpStatus())
                  .cause(annotation.applicationCode())
                  .logLevel(annotation.logLevel())
                  .suppressStacktrace(annotation.suppressStackTrace())
                  .suppressException(annotation.suppressException())
                  .build();
      }
focal_method.class_method_signature: ExceptionHandlerBinding.fromAnnotatedClass(Class<?> exceptionHandlerClass)
focal_method.full_signature: public static ExceptionHandlerBinding fromAnnotatedClass(Class<?> exceptionHandlerClass)
focal_method.identifier: fromAnnotatedClass
focal_method.invocations: notNull getAnnotation state build suppressException suppressStacktrace logLevel cause httpStatus exceptionHandlerBeanName exceptionClass logger exceptionHandlerClass builder getLogger getExceptionClass getHandlerBeanName httpStatus applicationCode logLevel suppressStackTrace suppressException
focal_method.modifiers: public static
focal_method.parameters: (Class<?> exceptionHandlerClass)
focal_method.return: ExceptionHandlerBinding
focal_method.signature: ExceptionHandlerBinding fromAnnotatedClass(Class<?> exceptionHandlerClass)