org.apache.maven.wagon
Class WagonException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.maven.wagon.WagonException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AuthenticationException, AuthorizationException, CommandExecutionException, ConnectionException, ResourceDoesNotExistException, TransferFailedException, UnsupportedProtocolException
- public abstract class WagonException
- extends java.lang.Exception
Root class for all exception in Wagon API
- Version:
- $Id: WagonException.java 162476 2005-04-19 02:49:45Z brett $
- Author:
- Michal Maczka
- See Also:
- Serialized Form
Field Summary |
private java.lang.Throwable |
cause
the throwable that caused this throwable to get thrown |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary |
WagonException(java.lang.String message)
Constructs a new WagonException with the specified detail message and cause. |
WagonException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new WagonException with the specified detail message. |
Method Summary |
java.lang.Throwable |
getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
java.lang.Throwable |
initCause(java.lang.Throwable cause)
Initializes the cause of this throwable to the specified value. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cause
private java.lang.Throwable cause
- the throwable that caused this throwable to get thrown
WagonException
public WagonException(java.lang.String message,
java.lang.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
- Parameters:
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.)
WagonException
public WagonException(java.lang.String message)
- Constructs a new WagonException with the specified detail message and cause.
- Parameters:
message
- - the detail message (which is saved for later retrieval by the getMessage() method).
getCause
public java.lang.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.)
- Returns:
- the cause of this throwable or null if the cause is nonexistent or unknown.
initCause
public java.lang.Throwable initCause(java.lang.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.
- Returns:
- a reference to this Throwable instance.