org.apache.maven.model.resolution
Class UnresolvableModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.maven.model.resolution.UnresolvableModelException
All Implemented Interfaces:
Serializable

public class UnresolvableModelException
extends Exception

Signals an error when resolving the path to an external model.

Author:
Benjamin Bentmann
See Also:
Serialized Form

Constructor Summary
UnresolvableModelException(String message, String groupId, String artifactId, String version)
          Creates a new exception with specified detail message.
UnresolvableModelException(String message, String groupId, String artifactId, String version, Throwable cause)
          Creates a new exception with specified detail message and cause.
 
Method Summary
 String getArtifactId()
          Gets the artifact id of the unresolvable model.
 String getGroupId()
          Gets the group id of the unresolvable model.
 String getVersion()
          Gets the version of the unresolvable model.
 
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

UnresolvableModelException

public UnresolvableModelException(String message,
                                  String groupId,
                                  String artifactId,
                                  String version,
                                  Throwable cause)
Creates a new exception with specified detail message and cause.

Parameters:
message - The detail message, may be null.
groupId - The group id of the unresolvable model, may be null.
artifactId - The artifact id of the unresolvable model, may be null.
version - The version of the unresolvable model, may be null.
cause - The cause, may be null.

UnresolvableModelException

public UnresolvableModelException(String message,
                                  String groupId,
                                  String artifactId,
                                  String version)
Creates a new exception with specified detail message.

Parameters:
message - The detail message, may be null.
groupId - The group id of the unresolvable model, may be null.
artifactId - The artifact id of the unresolvable model, may be null.
version - The version of the unresolvable model, may be null.
Method Detail

getGroupId

public String getGroupId()
Gets the group id of the unresolvable model.

Returns:
The group id of the unresolvable model, can be empty but never null.

getArtifactId

public String getArtifactId()
Gets the artifact id of the unresolvable model.

Returns:
The artifact id of the unresolvable model, can be empty but never null.

getVersion

public String getVersion()
Gets the version of the unresolvable model.

Returns:
The version of the unresolvable model, can be empty but never null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.