com.gentics.api.lib.exception
Class NodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.gentics.api.lib.exception.NodeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DatasourceException, DatasourceNotAvailableException, DuplicateIdException, ExpressionParserException, FeatureNotLicensedException, InconsistentDataException, InsufficientPrivilegesException, NoEventsAllowedException, ParserException, ReadOnlyException, UnexpectedAlterTableException, UnexptectedEmptySourceException, UnknownPropertyException

public class NodeException
extends java.lang.Exception

General exception thrown in .node

See Also:
Serialized Form

Constructor Summary
NodeException()
          Create an instance of the exception
NodeException(java.lang.String message)
          Create an instance of the exception with a message
NodeException(java.lang.String message, java.lang.String messageKey)
          Create an instance of the exception with a message and a localized message.
NodeException(java.lang.String message, java.lang.String messageKey, java.util.List<java.lang.String> parameters)
          Create an instance of the exception with a message and a localized message.
NodeException(java.lang.String message, java.lang.String messageKey, java.lang.String parameter)
          Create an instance of the exception with a message and a localized message.
NodeException(java.lang.String message, java.lang.Throwable cause)
          Create an instance of the exception with a message and a cause
NodeException(java.lang.Throwable cause)
          Create an instance of the exception with a cause
 
Method Summary
 java.lang.String getLocalizedMessage()
          Returns the localized message from the given message key.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

NodeException

public NodeException()
Create an instance of the exception


NodeException

public NodeException(java.lang.String message)
Create an instance of the exception with a message

Parameters:
message - message of the exception

NodeException

public NodeException(java.lang.String message,
                     java.lang.Throwable cause)
Create an instance of the exception with a message and a cause

Parameters:
message - message of the exception
cause - cause of the exception

NodeException

public NodeException(java.lang.Throwable cause)
Create an instance of the exception with a cause

Parameters:
cause - cause of the exception

NodeException

public NodeException(java.lang.String message,
                     java.lang.String messageKey)
Create an instance of the exception with a message and a localized message.

Parameters:
message - A plain text message that contains information about the error.
localizedMessageKey - A message key that is used to construct a CNI18nString for the localized message.

NodeException

public NodeException(java.lang.String message,
                     java.lang.String messageKey,
                     java.util.List<java.lang.String> parameters)
Create an instance of the exception with a message and a localized message.

Parameters:
message - A plain text message that contains information about the error.
localizedMessageKey - A message key that is used to construct a CNI18nString for the localized message.
parameters - List of parameters for the localized message.

NodeException

public NodeException(java.lang.String message,
                     java.lang.String messageKey,
                     java.lang.String parameter)
Create an instance of the exception with a message and a localized message.

Parameters:
message - A plain text message that contains information about the error.
localizedMessageKey - A message key that is used to construct a CNI18nString for the localized message.
parameter - Single parameter for the localized message. If you need more than one parameter use InsufficientPrivilegesException.InsufficientPrivilegesException(String, String, List).
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the localized message from the given message key. If no messageKey was provided, the standard message is returned.

Overrides:
getLocalizedMessage in class java.lang.Throwable


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.