org.apache.commons.attributes

Class RepositoryError

Known Direct Subclasses:
CircularDependencyError

public class RepositoryError
extends Error

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

Field Summary

private Throwable
nested

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.

Field Details

nested

private final Throwable nested

Constructor Details

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(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

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

Method Details

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

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