Class NotAuthorizedException

All Implemented Interfaces:
Serializable

public class NotAuthorizedException extends ClientErrorException

未授權異常(HTTP 401)

表示請求需要身分驗證。

See Also:
  • Constructor Details

    • NotAuthorizedException

      public NotAuthorizedException(String message)
      建立未授權異常
      Parameters:
      message - 錯誤訊息
    • NotAuthorizedException

      public NotAuthorizedException(String message, Throwable cause)
      建立未授權異常,包含原始異常
      Parameters:
      message - 錯誤訊息
      cause - 原始異常