パッケージ jakarta.ws.rs
クラス ServerErrorException
- java.lang.ObjectSE
-
- java.lang.ThrowableSE
-
- java.lang.ExceptionSE
-
- java.lang.RuntimeExceptionSE
-
- jakarta.ws.rs.WebApplicationException
-
- jakarta.ws.rs.ServerErrorException
- 実装済みのインターフェース一覧:
SerializableSE
public class ServerErrorException extends WebApplicationException
サーバーエラーを示すベースランタイムアプリケーション例外(HTTP5xxステータスコード)。- 導入:
- 2.0
- 作成者:
- Marek Potociar
- 関連事項:
- 連載形式
コンストラクター概要
コンストラクター コンストラクター 説明 ServerErrorException(int status)新しいサーバーエラー例外を構築します。ServerErrorException(int status, ThrowableSE cause)新しいサーバーエラー例外を構築します。ServerErrorException(Response response)新しいサーバーエラー例外を構築します。ServerErrorException(Response.Status status)新しいサーバーエラー例外を構築します。ServerErrorException(Response.Status status, ThrowableSE cause)新しいサーバーエラー例外を構築します。ServerErrorException(Response response, ThrowableSE cause)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, int status)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, int status, ThrowableSE cause)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, Response response)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, Response.Status status)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, Response.Status status, ThrowableSE cause)新しいサーバーエラー例外を構築します。ServerErrorException(StringSE message, Response response, ThrowableSE cause)新しいサーバーエラー例外を構築します。
方法の概要
クラス jakarta.ws.rs.WebApplicationException から継承されたメソッド
getResponse
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
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ステータスコードファミリのものではない場合。