org.apache.maven
Class MavenException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.maven.MavenException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChecksumVerificationException, DependencyResolverException, GoalException, RepoConfigException, UnknownPluginException, UnsatisfiedDependencyException

public class MavenException
extends java.lang.Exception

The base class for all exceptions thrown by MavenSession.

Version:
$Id: MavenException.java 517014 2007-03-11 21:15:50Z ltheussl $
See Also:
Serialized Form

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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenException

public MavenException()
Creates a new instance of MavenException without detail message.


MavenException

public MavenException(java.lang.String msg)
Constructs an instance of MavenException with the specified detail message.

Parameters:
msg - the detail message.

MavenException

public MavenException(java.lang.String message,
                      java.lang.Throwable cause)
Constructs an exception with the given message and exception as a root cause.

Parameters:
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.

MavenException

public MavenException(java.lang.Throwable cause)
Constructs an exception with the given exception as a root cause.

Parameters:
cause - The exception that might have caused this one. Should not be null.
Method Detail

getException

public java.lang.Throwable getException()
Returns the nested exception, if any.

Returns:
the nested exception, or null if no exception is associated with this one


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.