Class ServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.davidmoten.oa3.codegen.spring.runtime.ServiceException
All Implemented Interfaces:
Serializable, HasStatusCode

public final class ServiceException extends Exception implements HasStatusCode
See Also:
  • Constructor Details

    • ServiceException

      public ServiceException(int statusCode, String message, Optional<? extends org.springframework.http.ResponseEntity<?>> response)
    • ServiceException

      public ServiceException(int statusCode, String message)
    • ServiceException

      public ServiceException(int statusCode, Throwable e)
  • Method Details

    • statusCode

      public int statusCode()
      Specified by:
      statusCode in interface HasStatusCode
    • response

      public Optional<? extends org.springframework.http.ResponseEntity<?>> response()