Package com.linkedin.alpini.base.misc
Class ExceptionWithStatus
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.linkedin.alpini.base.misc.ExceptionWithStatus
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ExceptionWithResponseStatus
,RouterException
public class ExceptionWithStatus extends java.lang.Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description ExceptionWithStatus(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message)
ExceptionWithStatus(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message, java.lang.Throwable cause)
protected
ExceptionWithStatus(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
java.lang.Object
status()
<STATUS> java.util.Optional<STATUS>
status(java.lang.Class<STATUS> statusClass)
-
-
-
Constructor Detail
-
ExceptionWithStatus
public ExceptionWithStatus(@Nonnull java.lang.Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull java.lang.String message)
-
ExceptionWithStatus
public ExceptionWithStatus(@Nonnull java.lang.Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull java.lang.String message, java.lang.Throwable cause)
-
ExceptionWithStatus
protected ExceptionWithStatus(@Nonnull java.lang.Class<STATUS> statusClass, @Nonnull STATUS status, int code, @Nonnull java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)
-
-