Class ApiException

All Implemented Interfaces:
Serializable

public class ApiException extends RuntimeException implements Serializable
See Also:
  • Constructor Details

    • ApiException

      public ApiException(String msg)
    • ApiException

      public ApiException(Throwable t)
    • ApiException

      public ApiException(String msg, Throwable t)
    • ApiException

      public ApiException(String msg, int status)
    • ApiException

      public ApiException(String msg, org.springframework.http.HttpStatus status)
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getResponse

      public org.springframework.http.ResponseEntity<Object> getResponse()
    • formatExceptionResponse

      public static org.springframework.http.ResponseEntity<Object> formatExceptionResponse(String message, org.springframework.http.HttpStatusCode status)
    • formatExceptionResponse

      public static org.springframework.http.ResponseEntity<Object> formatExceptionResponse(String message, org.springframework.http.HttpStatusCode status, @Nullable org.springframework.http.HttpHeaders headers)