Class RestApplicationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RestApplicationException
    extends java.lang.RuntimeException
    The general class RestApplicationException for rest controller exceptions
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()  
      java.lang.String getErrorMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RestApplicationException

        public RestApplicationException​(int code)
      • RestApplicationException

        public RestApplicationException​(int code,
                                        java.lang.String errorMessage)
    • Method Detail

      • getCode

        public int getCode()
      • getErrorMessage

        public java.lang.String getErrorMessage()