Class ExceptionWithStatus

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.linkedin.alpini.base.misc.ExceptionWithStatus
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExceptionWithResponseStatus, RouterException

public class ExceptionWithStatus extends Exception
See Also:
  • Constructor Details

    • ExceptionWithStatus

      public ExceptionWithStatus(@Nonnull Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull String message)
    • ExceptionWithStatus

      public ExceptionWithStatus(@Nonnull Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull String message, Throwable cause)
    • ExceptionWithStatus

      protected ExceptionWithStatus(@Nonnull Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
  • Method Details

    • status

      public <STATUS> Optional<STATUS> status(Class<STATUS> statusClass)
    • status

      public Object status()
    • code

      public int code()