パッケージ org.aiwolf.common

クラス AIWolfAgentException

すべての実装されたインタフェース:
Serializable

public class AIWolfAgentException extends AIWolfRuntimeException
人狼知能におけるエージェントの例外を扱うクラスです。
サーバのリクエスト中に発生した例外をラップし、スローします。
AI werewolf agent's exception.
作成者:
tori
関連項目:
  • コンストラクタの詳細

    • AIWolfAgentException

      public AIWolfAgentException(Agent agent, String method, Throwable exception)
      人狼知能における例外を構築します。
      Create new AI wolf game's exception.
      パラメータ:
      agent -
      例外を起こしたエージェント
      Agent
      method -
      例外が発生しているメソッド名
      Method
      exception -
      発生した例外
      Exception
  • メソッドの詳細

    • getAgent

      public Agent getAgent()
      例外を起こしたエージェントを返します。
      Get the agent who caused exception.
      戻り値:
      例外を起こしたエージェント
      Agent who caused exception
    • getMethod

      public String getMethod()
      例外が発生しているメソッド名を返します。
      Get the method which caused exception.
      戻り値:
      例外が発生しているメソッド名
      Method which caused exception
    • getException

      public Throwable getException()
      発生した例外を返します。
      Get the exception.
      戻り値:
      発生した例外
      Exception
    • printStackTrace

      public void printStackTrace()
      オーバーライド:
      printStackTrace クラス内 Throwable
    • printStackTrace

      public void printStackTrace(PrintStream s)
      オーバーライド:
      printStackTrace クラス内 Throwable
    • printStackTrace

      public void printStackTrace(PrintWriter s)
      オーバーライド:
      printStackTrace クラス内 Throwable