パッケージ org.aiwolf.common
クラス AIWolfAgentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.aiwolf.common.AIWolfRuntimeException
-
- org.aiwolf.common.AIWolfAgentException
-
- すべての実装されたインタフェース:
java.io.Serializable
public class AIWolfAgentException extends AIWolfRuntimeException
人狼知能におけるエージェントの例外を扱うクラスです。
サーバのリクエスト中に発生した例外をラップし、スローします。AI werewolf agent's exception.- 作成者:
- tori
- 関連項目:
- 直列化された形式
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AIWolfAgentException(Agent agent, java.lang.String method, java.lang.Throwable exception)
人狼知能における例外を構築します。
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Agent
getAgent()
例外を起こしたエージェントを返します。java.lang.Throwable
getException()
発生した例外を返します。java.lang.String
getMethod()
例外が発生しているメソッド名を返します。void
printStackTrace()
void
printStackTrace(java.io.PrintStream s)
void
printStackTrace(java.io.PrintWriter s)
-
-
-
コンストラクタの詳細
-
AIWolfAgentException
public AIWolfAgentException(Agent agent, java.lang.String method, java.lang.Throwable exception)
人狼知能における例外を構築します。Create new AI wolf game's exception.- パラメータ:
agent
-例外を起こしたエージェントAgentmethod
-例外が発生しているメソッド名Methodexception
-発生した例外Exception
-
-
メソッドの詳細
-
getAgent
public Agent getAgent()
例外を起こしたエージェントを返します。Get the agent who caused exception.- 戻り値:
- 例外を起こしたエージェントAgent who caused exception
-
getMethod
public java.lang.String getMethod()
例外が発生しているメソッド名を返します。Get the method which caused exception.- 戻り値:
- 例外が発生しているメソッド名Method which caused exception
-
getException
public java.lang.Throwable getException()
発生した例外を返します。Get the exception.- 戻り値:
- 発生した例外Exception
-
printStackTrace
public void printStackTrace()
- オーバーライド:
printStackTrace
クラス内java.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- オーバーライド:
printStackTrace
クラス内java.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- オーバーライド:
printStackTrace
クラス内java.lang.Throwable
-
-