Class ServerErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.leandev.appfuse.http.exception.HttpClientException
io.leandev.appfuse.http.exception.ServerErrorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InternalServerErrorException, ServiceUnavailableException
伺服器錯誤異常(HTTP 5xx)
表示由於伺服器錯誤(如內部錯誤、服務不可用等)導致的 HTTP 錯誤。
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerErrorException(int statusCode, String message) 建立伺服器錯誤異常ServerErrorException(int statusCode, String message, Throwable cause) 建立伺服器錯誤異常,包含原始異常 -
Method Summary
Methods inherited from class HttpClientException
getStatusCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerErrorException
建立伺服器錯誤異常- Parameters:
statusCode- HTTP 狀態碼(500-599)message- 錯誤訊息
-
ServerErrorException
-