Class MethodNotAllowed

All Implemented Interfaces:
Serializable

public final class MethodNotAllowed extends RuntimeException
MethodNotAllowed異常在試圖調用不允許的方法時拋出。
Since:
2024-02-08
See Also:
  • Constructor Details

    • MethodNotAllowed

      public MethodNotAllowed()
      構造一個新的MethodNotAllowed異常,沒有詳細消息。
    • MethodNotAllowed

      public MethodNotAllowed(String message)
      構造一個新的MethodNotAllowed異常,帶有指定的詳細消息。
      Parameters:
      message - 詳細消息。
    • MethodNotAllowed

      public MethodNotAllowed(Throwable cause)
      構造一個新的MethodNotAllowed異常,帶有指定的原因。
      Parameters:
      cause - 異常的原因。
    • MethodNotAllowed

      public MethodNotAllowed(String message, Throwable cause)
      構造一個新的MethodNotAllowed異常,帶有指定的詳細消息和原因。
      Parameters:
      message - 詳細消息。
      cause - 異常的原因。