local.tomas.hibernate
Class HibernatePersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by local.tomas.i18n.LocalizedException
              extended by local.tomas.hibernate.HibernatePersistenceException
All Implemented Interfaces:
Serializable

public class HibernatePersistenceException
extends local.tomas.i18n.LocalizedException

A localized exception dealing with hibernate persistence errors.

Author:
Teubner
See Also:
Serialized Form

Constructor Summary
HibernatePersistenceException()
          Default constructor.
HibernatePersistenceException(String message)
          Construct exception from message key.
HibernatePersistenceException(String message, Object arg)
          Construct exception from message key and single argument.
HibernatePersistenceException(String message, Object[] args)
          Construct exception from message key and message arguments.
HibernatePersistenceException(String message, Object[] args, Throwable cause)
          Constuct exception from message key, message arguments and root cause.
HibernatePersistenceException(String message, Object arg, Throwable cause)
          Construct exception from message key, a single argument and a root cause.
HibernatePersistenceException(String message, Throwable cause)
          Construct exception from message key and root cause.
HibernatePersistenceException(Throwable cause)
          Construct exception from root cause.
 
Method Summary
protected  local.tomas.i18n.Messages getMessages()
           
 
Methods inherited from class local.tomas.i18n.LocalizedException
getLocale, getLocalizedMessage, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HibernatePersistenceException

public HibernatePersistenceException()
Default constructor.


HibernatePersistenceException

public HibernatePersistenceException(String message)
Construct exception from message key.

Parameters:
message - message key

HibernatePersistenceException

public HibernatePersistenceException(String message,
                                     Throwable cause)
Construct exception from message key and root cause.

Parameters:
message - message key
cause - root cause

HibernatePersistenceException

public HibernatePersistenceException(Throwable cause)
Construct exception from root cause.

Parameters:
cause - root cause

HibernatePersistenceException

public HibernatePersistenceException(String message,
                                     Object arg,
                                     Throwable cause)
Construct exception from message key, a single argument and a root cause.

Parameters:
message - message key
arg - single argument of message
cause - root cause

HibernatePersistenceException

public HibernatePersistenceException(String message,
                                     Object arg)
Construct exception from message key and single argument.

Parameters:
message - message key
arg - single argument

HibernatePersistenceException

public HibernatePersistenceException(String message,
                                     Object[] args,
                                     Throwable cause)
Constuct exception from message key, message arguments and root cause.

Parameters:
message - message key
args - array of message arguments
cause - root cause

HibernatePersistenceException

public HibernatePersistenceException(String message,
                                     Object[] args)
Construct exception from message key and message arguments.

Parameters:
message - message key
args - array of message arguments
Method Detail

getMessages

protected local.tomas.i18n.Messages getMessages()
Specified by:
getMessages in class local.tomas.i18n.LocalizedException


Copyright © 2012. All Rights Reserved.