Package net.sf.jguiraffe.locators
Class LocatorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sf.jguiraffe.locators.LocatorException
-
- All Implemented Interfaces:
Serializable
public class LocatorException extends RuntimeException
An exception class for reporting error conditions related to
objects.Locator
Exceptions of this type can be thrown by the methods of the
interface if the resources they should represent are invalid or cannot be found. Note that this is a runtime exception because error conditions of this type are usually caused by programming errors and cannot be recovered from.Locator
- Version:
- $Id: LocatorException.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocatorException()
Creates a new instance ofLocatorException
.LocatorException(String msg)
Creates a new instance ofLocatorException
and sets an error message.LocatorException(String msg, Throwable cause)
Creates a new instance ofLocatorException
and sets an error message and a root cause.LocatorException(Throwable cause)
Creates a new instance ofLocatorException
and sets the root cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LocatorException
public LocatorException()
Creates a new instance ofLocatorException
.
-
LocatorException
public LocatorException(String msg)
Creates a new instance ofLocatorException
and sets an error message.- Parameters:
msg
- the error message
-
LocatorException
public LocatorException(String msg, Throwable cause)
Creates a new instance ofLocatorException
and sets an error message and a root cause.- Parameters:
msg
- the error messagecause
- the root cause
-
LocatorException
public LocatorException(Throwable cause)
Creates a new instance ofLocatorException
and sets the root cause.- Parameters:
cause
- the root cause
-
-