パッケージ 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)  
      • クラスから継承されたメソッド java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
      • クラスから継承されたメソッド java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • コンストラクタの詳細

      • AIWolfAgentException

        public AIWolfAgentException​(Agent agent,
                                    java.lang.String method,
                                    java.lang.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 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