Package ai.neuon.utility.http.response
Class BaseResponseException
-
- All Implemented Interfaces:
-
java.io.Serializable
public abstract class BaseResponseException extends Exception
A base exception class for standardized error responses. The server should handle and give a standardized error response when this class is thrown
-
-
Constructor Summary
Constructors Constructor Description BaseResponseException(HttpStatusCode status, String errorMessage, Throwable cause)
-
Method Summary
Modifier and Type Method Description final HttpStatusCodegetStatus()final StringgetErrorMessage()-
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getStatus
final HttpStatusCode getStatus()
-
getErrorMessage
final String getErrorMessage()
-
-
-
-