Class ExoSocialException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActivityStorageException, GroupSpaceBindingStorageException, IdentityStorageException, RelationshipStorageException, SpaceStorageException

public class ExoSocialException extends RuntimeException
The top exception class to handle exception for eXo Social.
Using this for displaying any error to user by using key for message bundle display;
The exception message and cause for displaying more information.
Since:
Nov 9, 2010
Author:
hoatle (hoatlevan at gmail dot com)
See Also:
  • Constructor Details

    • ExoSocialException

      public ExoSocialException(String msgKey)
      Only message key available.
      Parameters:
      msgKey - message key
    • ExoSocialException

      public ExoSocialException(String msgKey, String[] msgArgs)
      message key and messageArguments are available.
      Parameters:
      msgKey - message key
      msgArgs - message arguments
    • ExoSocialException

      public ExoSocialException(String msgKey, String msg)
      messageKey and exception message is available.
      Parameters:
      msgKey - messageKey
      msg - addition message (useful to developer).
    • ExoSocialException

      public ExoSocialException(String msgKey, Throwable cause)
      The message key with exception message and cause.
      Parameters:
      msgKey - message key
      cause - the cause
    • ExoSocialException

      public ExoSocialException(String msgKey, String msg, Throwable cause)
      The message key with exception message and cause.
      Parameters:
      msgKey - message key
      msg - the message which is useful for developers.
      cause - the cause
    • ExoSocialException

      public ExoSocialException(String msgKey, String[] msgArgs, String msg, Throwable cause)
      The message key with messageArguments, exception message and cause.
      Parameters:
      msgKey - message key
      msgArgs - message arguments
      msg - message, the message is useful for developer Example: Node not found.
      cause - the cause
  • Method Details

    • getMessageKey

      public final String getMessageKey()
      Gets the message key.
      Returns:
      mesageKey
    • setMessageKey

      public final void setMessageKey(String msgKey)
      Sets message key.
      Parameters:
      msgKey - the messag key
    • getMessageArguments

      public final String[] getMessageArguments()
      Gets the message arguments.
      Returns:
      the message arguments
    • setMessageArguments

      public final void setMessageArguments(String[] msgArgs)
      Sets message arguments.
      Parameters:
      msgArgs - the mesage arguments
    • getDataInput

      public final String getDataInput()
      Gets the date input, which is useful for developers. Usually, this is a json string serialized from objects.
      Returns:
      the data input.
    • setDataInput

      public final void setDataInput(String jsonDataInput)
      Sets the json data input for displaying.
      Parameters:
      jsonDataInput - the json data input