Class ClientErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.leandev.appfuse.http.exception.HttpClientException
io.leandev.appfuse.http.exception.ClientErrorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException, ForbiddenException, NotAcceptableException, NotAllowedException, NotAuthorizedException, NotFoundException
客戶端錯誤異常(HTTP 4xx)
表示由於客戶端錯誤(如無效請求、未授權、資源不存在等)導致的 HTTP 錯誤。
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClientErrorException(int statusCode, String message) 建立客戶端錯誤異常ClientErrorException(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
-
ClientErrorException
建立客戶端錯誤異常- Parameters:
statusCode- HTTP 狀態碼(400-499)message- 錯誤訊息
-
ClientErrorException
-