org.apache.maven.wagon
Class WagonException
Exception
org.apache.maven.wagon.WagonException
public abstract class WagonException
extends Exception
Root class for all exception in Wagon API
$Id: WagonException.java 162476 2005-04-19 02:49:45Z brett $WagonException(String message) - Constructs a new WagonException with the specified detail message and cause.
|
WagonException(String message, Throwable cause) - Constructs a new WagonException with the specified detail message.
|
Throwable | getCause() - Returns the cause of this throwable or null if the cause is nonexistent or unknown.
|
Throwable | initCause(Throwable cause) - Initializes the cause of this throwable to the specified value.
|
WagonException
public WagonException(String message)
Constructs a new WagonException with the specified detail message and cause.
message
- - the detail message (which is saved for later retrieval by the getMessage() method).
WagonException
public WagonException(String message,
Throwable cause)
Constructs a new WagonException with the specified detail message.
The cause is not initialized, and may subsequently be initialized by a call to initCause
message
- - the detail message (which is saved for later retrieval by the getMessage() method).cause
- - the cause (which is saved for later retrieval by the getCause() method).
(A null value is permitted, and indicates that the cause is nonexistent or unknown.)
getCause
public Throwable getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.
(The cause is the throwable that caused this throwable to get thrown.)
- the cause of this throwable or null if the cause is nonexistent or unknown.
initCause
public Throwable initCause(Throwable cause)
Initializes the cause of this throwable to the specified value.
(The cause is the throwable that caused this throwable to get thrown.)
This method can be called at most once.
It is generally called from within the constructor, or immediately after creating the throwable.
If this throwable was created with WagonException(Throwable) or WagonException(String,Throwable),
this method cannot be called even once.
- a reference to this Throwable instance.