Class PortletRegistryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.portal.portletcontainer.context.registry.PortletRegistryException
-
- All Implemented Interfaces:
Serializable
public class PortletRegistryException extends Exception
APortletRegistryException
is thrown when there are errors related to registry read/write.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
key
protected Throwable
originalException
static String
RESOURCE_BASE
protected Object[]
tokens
-
Constructor Summary
Constructors Constructor Description PortletRegistryException(String key)
Constructs an instance of thePortletRegistryException
class.PortletRegistryException(String key, Object[] tokens)
Constructs an instance of thePortletRegistryException
class.PortletRegistryException(String key, Throwable t)
Constructs an instance of thePortletRegistryException
class.PortletRegistryException(String key, Throwable t, Object[] tokens)
Constructs an instance of thePortletRegistryException
class.PortletRegistryException(Throwable t)
Constructs an instance of thePortletRegistryException
class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
String
getLocalizedMessage()
String
getMessage()
Object[]
getTokens()
Throwable
getWrapped()
String
getWrappedMessage()
void
printStackTrace()
void
printStackTrace(PrintWriter pw)
static void
setLocale(Locale loc)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
RESOURCE_BASE
public static final String RESOURCE_BASE
- See Also:
- Constant Field Values
-
originalException
protected Throwable originalException
-
key
protected String key
-
tokens
protected Object[] tokens
-
-
Constructor Detail
-
PortletRegistryException
public PortletRegistryException(String key)
Constructs an instance of thePortletRegistryException
class.- Parameters:
key
- key string to index into resource bundle to retieve localized message
-
PortletRegistryException
public PortletRegistryException(String key, Object[] tokens)
Constructs an instance of thePortletRegistryException
class.- Parameters:
key
- key string to index into resource bundle to retieve localized messagetokens
- array of tokens to be used by the exception message
-
PortletRegistryException
public PortletRegistryException(String key, Throwable t)
Constructs an instance of thePortletRegistryException
class.- Parameters:
key
- key string to index into resource bundle to retieve localized messaget
- Throwable object provided by the object which is throwing
-
PortletRegistryException
public PortletRegistryException(String key, Throwable t, Object[] tokens)
Constructs an instance of thePortletRegistryException
class.- Parameters:
key
- key string to index into resource bundle to retieve localized messaget
- Throwable object provided by the object which is throwingtokens
- array of tokens to be used by the exception message
-
PortletRegistryException
public PortletRegistryException(Throwable t)
Constructs an instance of thePortletRegistryException
class.- Parameters:
t
- Throwable object provided by the object which is throwing the exception
-
-
Method Detail
-
setLocale
public static void setLocale(Locale loc)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getWrapped
public Throwable getWrapped()
-
getWrappedMessage
public String getWrappedMessage()
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintWriter pw)
- Overrides:
printStackTrace
in classThrowable
-
getKey
public String getKey()
-
getTokens
public Object[] getTokens()
-
-