|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.maven.MavenException
The base class for all exceptions thrown by MavenSession. Taken liberally from Ant's BuildException
Constructor Summary | |
---|---|
MavenException()
Creates a new instance of MavenException without detail
message. |
|
MavenException(java.lang.String msg)
Constructs an instance of MavenException with the specified
detail message. |
|
MavenException(java.lang.String message,
java.lang.Throwable cause)
Constructs an exception with the given message and exception as a root cause. |
|
MavenException(java.lang.Throwable cause)
Constructs an exception with the given exception as a root cause. |
Method Summary | |
---|---|
java.lang.Throwable |
getException()
Returns the nested exception, if any. |
void |
printStackTrace()
Prints the stack trace for this exception and any nested exception to System.err . |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace of this exception and any nested exception to the specified PrintStream. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace of this exception and any nested exception to the specified PrintWriter. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MavenException()
MavenException
without detail
message.
public MavenException(java.lang.String msg)
MavenException
with the specified
detail message.
msg
- the detail message.public MavenException(java.lang.String message, java.lang.Throwable 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
.public MavenException(java.lang.Throwable cause)
cause
- The exception that might have caused this one.
Should not be null
.Method Detail |
public java.lang.Throwable getException()
null
if no
exception is associated with this onepublic void printStackTrace()
System.err
.
public void printStackTrace(java.io.PrintStream ps)
ps
- The PrintStream to print the stack trace to.
Must not be null
.public void printStackTrace(java.io.PrintWriter pw)
pw
- The PrintWriter to print the stack trace to.
Must not be null
.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |