クラス RepresentationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.graphql.data.federation.RepresentationException
- 実装済みのインターフェース一覧:
SerializableSE
- 既知の直属サブクラス
RepresentationNotResolvedException
次の理由で表現を解決できなかった場合に発生します:
- "__typename" 引数がありません。
- "__typename" をコントローラーメソッドにマップできませんでした。
リゾルバーが null を返すか、空で完了した場合に、RepresentationNotResolvedException サブ型が発生します。
- 導入:
- 1.3.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明RepresentationException(MapSE<StringSE, ObjectSE> representation, StringSE msg) RepresentationException(MapSE<StringSE, ObjectSE> representation, @Nullable HandlerMethod hm, StringSE msg) 方法の概要
修飾子と型メソッド説明エラーの分類。"__typename" 引数が欠落している場合はErrorType.BAD_REQUEST、それ以外の場合はErrorType.INTERNAL_ERRORです。@Nullable HandlerMethodマップされたコントローラーメソッドを返します。マップできなかった場合はnullを返します。エンティティの「表現」入力マップを返します。クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
RepresentationException
RepresentationException
public RepresentationException(MapSE<StringSE, ObjectSE> representation, @Nullable HandlerMethod hm, StringSE msg)
メソッドの詳細
getRepresentation
getHandlerMethod
マップされたコントローラーメソッドを返します。マップできなかった場合はnullを返します。getErrorType
エラーの分類。"__typename" 引数が欠落している場合はErrorType.BAD_REQUEST、それ以外の場合はErrorType.INTERNAL_ERRORです。