Class RestApiExceptionMapperBootProperties.ExceptionMappingImpl

java.lang.Object
org.bremersee.exception.spring.boot.autoconfigure.RestApiExceptionMapperBootProperties.ExceptionMappingImpl
All Implemented Interfaces:
org.bremersee.exception.RestApiExceptionMapperProperties.ExceptionMapping
Enclosing class:
RestApiExceptionMapperBootProperties

public static class RestApiExceptionMapperBootProperties.ExceptionMappingImpl extends Object implements org.bremersee.exception.RestApiExceptionMapperProperties.ExceptionMapping
The exception mapping.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExceptionMappingImpl(String exceptionClassName, org.springframework.http.HttpStatus httpStatus, String code)
    Instantiates a new exception mapping.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets status.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bremersee.exception.RestApiExceptionMapperProperties.ExceptionMapping

    getCode, getExceptionClassName, getMessage
  • Constructor Details

    • ExceptionMappingImpl

      public ExceptionMappingImpl(String exceptionClassName, org.springframework.http.HttpStatus httpStatus, String code)
      Instantiates a new exception mapping.
      Parameters:
      exceptionClassName - the exception class name
      httpStatus - the http status
      code - the code
  • Method Details

    • getStatus

      public int getStatus()
      Gets status.
      Specified by:
      getStatus in interface org.bremersee.exception.RestApiExceptionMapperProperties.ExceptionMapping
      Returns:
      the status