パッケージ com.kazurayam.ant
クラス BuildException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- 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()
推奨されていません。UseThrowable.getCause()
instead.Location
getLocation()
Returns the file location where the error occurred.static BuildException
of(java.lang.Throwable t)
Get aBuildException
for the specifiedThrowable
.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.
-
-
-
コンストラクタの詳細
-
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 benull
.
-
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 benull
.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 benull
unless a cause is specified.cause
- The exception that might have caused this one. May benull
.
-
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 benull
unless a cause is specified.cause
- The exception that might have caused this one. May benull
.location
- The location in the project file where the error occurred. Must not benull
.
-
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 benull
.
-
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 benull
.location
- The location in the project file where the error occurred. Must not benull
.
-
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 benull
.location
- The location in the project file where the error occurred. Must not benull
.
-
-
メソッドの詳細
-
of
public static BuildException of(java.lang.Throwable t)
Get aBuildException
for the specifiedThrowable
.- パラメータ:
t
- Throwable explains the reason- 戻り値:
BuildException
- 導入されたバージョン:
- Ant 1.10.13
-
getException
@Deprecated public java.lang.Throwable getException()
推奨されていません。UseThrowable.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 benull
.
-
getLocation
public Location getLocation()
Returns the file location where the error occurred.- 戻り値:
- the file location where the error occurred.
-
-