org.codehaus.mojo.mrm.api.maven
Class MetadataNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.codehaus.mojo.mrm.api.maven.MetadataNotFoundException
All Implemented Interfaces:
Serializable

public class MetadataNotFoundException
extends Exception

An exception that indicates that an artifact could not be found.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
MetadataNotFoundException(String path)
          Creates a new MetadataNotFoundException.
MetadataNotFoundException(String message, String path)
          Creates a new MetadataNotFoundException.
MetadataNotFoundException(String message, String path, Throwable cause)
          Creates a new MetadataNotFoundException.
MetadataNotFoundException(String path, Throwable cause)
          Creates a new MetadataNotFoundException.
 
Method Summary
 String getPath()
          Gets the path of the metadata that does not exist.
 
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

MetadataNotFoundException

public MetadataNotFoundException(String path)
Creates a new MetadataNotFoundException.

Parameters:
path - the path of the metadata that was not found.
Since:
1.0

MetadataNotFoundException

public MetadataNotFoundException(String message,
                                 String path)
Creates a new MetadataNotFoundException.

Parameters:
message - The message.
path - the path of the metadata that was not found.
Since:
1.0

MetadataNotFoundException

public MetadataNotFoundException(String path,
                                 Throwable cause)
Creates a new MetadataNotFoundException.

Parameters:
path - the path of the metadata that was not found.
cause - the reason why it was not found (or null if there is no specific reason)
Since:
1.0

MetadataNotFoundException

public MetadataNotFoundException(String message,
                                 String path,
                                 Throwable cause)
Creates a new MetadataNotFoundException.

Parameters:
message - The message.
path - the path of the metadata that was not found.
cause - the reason why it was not found (or null if there is no specific reason)
Since:
1.0
Method Detail

getPath

public String getPath()
Gets the path of the metadata that does not exist.

Returns:
the path of the metadata that was not found.
Since:
1.0


Copyright © 2009-2011 Codehaus. All Rights Reserved.