パッケージ jakarta.ws.rs

クラス ServerErrorException

実装されたすべてのインターフェース:
SerializableSE
既知の直属サブクラス
InternalServerErrorExceptionServiceUnavailableException

public class ServerErrorException extends WebApplicationException
サーバーエラーを示すベースランタイムアプリケーション例外(HTTP 5xx ステータスコード)。
導入:
2.0
作成者:
Marek Potociar
関連事項:
  • コンストラクターの詳細

    • ServerErrorException

      public ServerErrorException(Response.Status status)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが null であるか、Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, Response.Status status)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが null であるか、Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(int status)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが有効な HTTP ステータスコードではない場合、または Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, int status)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが有効な HTTP ステータスコードではない場合、または Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(Response response)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      response - サーバーエラーレスポンス。ステータスコードを 5xx ステータスコードに設定する必要があります。
      例外:
      IllegalArgumentExceptionSE - レスポンスステータスコードが Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, Response response)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      response - サーバーエラーレスポンス。ステータスコードを 5xx ステータスコードに設定する必要があります。
      例外:
      IllegalArgumentExceptionSE - レスポンスステータスコードが Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(Response.Status status, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが null であるか、Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, Response.Status status, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが null であるか、Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(int status, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが有効な HTTP ステータスコードではない場合、または Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, int status, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      status - サーバーエラーステータス。5xx ステータスコードである必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - ステータスコードが有効な HTTP ステータスコードではない場合、または Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(Response response, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      response - サーバーエラーレスポンス。ステータスコードを 5xx ステータスコードに設定する必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - レスポンスステータスコードが Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。
    • ServerErrorException

      public ServerErrorException(StringSE message, Response response, ThrowableSE cause)
      新しいサーバーエラー例外を構築します。
      パラメーター:
      message - 詳細メッセージ(Throwable.getMessage() メソッドによる後の検索のために保存されます)。
      response - サーバーエラーレスポンス。ステータスコードを 5xx ステータスコードに設定する必要があります。
      cause - 例外の根本的な原因。
      例外:
      IllegalArgumentExceptionSE - レスポンスステータスコードが Response.Status.Family.SERVER_ERROR ステータスコードファミリのものではない場合。