org.apache.commons.attributes
Class RepositoryError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended byorg.apache.commons.attributes.RepositoryError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CircularDependencyError

public class RepositoryError
extends Error

Thrown when an attribute repository class can't be loaded or instantiated.

Since:
2.1
See Also:
Serialized Form

Constructor Summary
RepositoryError()
          Create a new RepositoryError with no message or nested Throwable.
RepositoryError(String message)
          Create a new RepositoryError with a message but no nested Throwable.
RepositoryError(String message, Throwable nested)
          Create a new RepositoryError with a message and nested Throwable.
RepositoryError(Throwable nested)
          Create a new RepositoryError with a nested Throwable.
 
Method Summary
 Throwable getCause()
          Get the nested Throwable, if any.
 Throwable getNested()
          Get the nested Throwable if any.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

RepositoryError

public RepositoryError()
Create a new RepositoryError with no message or nested Throwable.

Since:
2.1

RepositoryError

public RepositoryError(String message)
Create a new RepositoryError with a message but no nested Throwable.

Parameters:
message - the message.
Since:
2.1

RepositoryError

public RepositoryError(Throwable nested)
Create a new RepositoryError with a nested Throwable. The message is set to nested.toString().

Parameters:
nested - the nested Throwable.
Since:
2.1

RepositoryError

public RepositoryError(String message,
                       Throwable nested)
Create a new RepositoryError with a message and nested Throwable.

Parameters:
message - the message.
nested - the nested Throwable.
Since:
2.1
Method Detail

getNested

public Throwable getNested()
Get the nested Throwable if any.

Returns:
the Throwable that caused this Error to be thrown, or null if none exists.
Since:
2.1

getCause

public Throwable getCause()
Get the nested Throwable, if any.

Returns:
the Throwable that caused this Error to be thrown, or null if none exists.
Since:
2.2


Copyright © The Apache Software Foundation. All Rights Reserved.