パッケージ com.kazurayam.ant

クラス BuildException

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

    public class BuildException
    extends java.lang.RuntimeException
    Signals an error condition during a build
    関連項目:
    直列化された形式
    • コンストラクタの概要

      コンストラクタ 
      コンストラクタ 説明
      BuildException()
      Constructs a build exception with no descriptive information.
      BuildException​(java.lang.String message)
      Constructs an exception with the given descriptive message.
      BuildException​(java.lang.String message, Location location)
      Constructs an exception with the given descriptive message and a location in a file.
      BuildException​(java.lang.String pattern, java.lang.Object... formatArguments)
      Constructs an exception with the given format pattern and arguments.
      BuildException​(java.lang.String message, java.lang.Throwable cause)
      Constructs an exception with the given message and exception as a root cause.
      BuildException​(java.lang.String message, java.lang.Throwable cause, Location location)
      Constructs an exception with the given message and exception as a root cause and a location in a file.
      BuildException​(java.lang.Throwable cause)
      Constructs an exception with the given exception as a root cause.
      BuildException​(java.lang.Throwable cause, Location location)
      Constructs an exception with the given exception as a root cause and a location in a file.
    • メソッドの概要

      すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 推奨されていないメソッド 
      修飾子とタイプ メソッド 説明
      java.lang.Throwable getException()
      推奨されていません。
      Use Throwable.getCause() instead.
      Location getLocation()
      Returns the file location where the error occurred.
      static BuildException of​(java.lang.Throwable t)
      Get a BuildException for the specified Throwable.
      void setLocation​(Location location)
      Sets the file location where the error occurred.
      java.lang.String toString()
      Returns the location of the error and the error message.
      • クラスから継承されたメソッド java.lang.Throwable

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

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

      • BuildException

        public BuildException()
        Constructs a build exception with no descriptive information.
      • BuildException

        public BuildException​(java.lang.String message)
        Constructs an exception with the given descriptive message.
        パラメータ:
        message - A description of or information about the exception. Should not be null.
      • BuildException

        public BuildException​(java.lang.String pattern,
                              java.lang.Object... formatArguments)
        Constructs an exception with the given format pattern and arguments.
        パラメータ:
        pattern - A description of or information about the exception. Should not be null.
        formatArguments - ditto
        導入されたバージョン:
        Ant 1.10.2
        関連項目:
        String.format(String, Object...)
      • BuildException

        public BuildException​(java.lang.String message,
                              java.lang.Throwable cause)
        Constructs an exception with the given message and exception as a root cause.
        パラメータ:
        message - A description of or information about the exception. Should not be null unless a cause is specified.
        cause - The exception that might have caused this one. May be null.
      • BuildException

        public BuildException​(java.lang.String message,
                              java.lang.Throwable cause,
                              Location location)
        Constructs an exception with the given message and exception as a root cause and a location in a file.
        パラメータ:
        message - A description of or information about the exception. Should not be null unless a cause is specified.
        cause - The exception that might have caused this one. May be null.
        location - The location in the project file where the error occurred. Must not be null.
      • BuildException

        public BuildException​(java.lang.Throwable cause)
        Constructs an exception with the given exception as a root cause.
        パラメータ:
        cause - The exception that might have caused this one. Should not be null.
      • BuildException

        public BuildException​(java.lang.String message,
                              Location location)
        Constructs an exception with the given descriptive message and a location in a file.
        パラメータ:
        message - A description of or information about the exception. Should not be null.
        location - The location in the project file where the error occurred. Must not be null.
      • BuildException

        public BuildException​(java.lang.Throwable cause,
                              Location location)
        Constructs an exception with the given exception as a root cause and a location in a file.
        パラメータ:
        cause - The exception that might have caused this one. Should not be null.
        location - The location in the project file where the error occurred. Must not be null.
    • メソッドの詳細

      • of

        public static BuildException of​(java.lang.Throwable t)
        Get a BuildException for the specified Throwable.
        パラメータ:
        t - Throwable explains the reason
        戻り値:
        BuildException
        導入されたバージョン:
        Ant 1.10.13
      • getException

        @Deprecated
        public java.lang.Throwable getException()
        推奨されていません。
        Use Throwable.getCause() instead.
        Returns the nested exception, if any.
        戻り値:
        the nested exception, or null if no exception is associated with this one
      • toString

        public java.lang.String toString()
        Returns the location of the error and the error message.
        オーバーライド:
        toString クラス内 java.lang.Throwable
        戻り値:
        the location of the error and the error message
      • setLocation

        public void setLocation​(Location location)
        Sets the file location where the error occurred.
        パラメータ:
        location - The file location where the error occurred. Must not be null.
      • getLocation

        public Location getLocation()
        Returns the file location where the error occurred.
        戻り値:
        the file location where the error occurred.