org.squashtest.csp.tm.domain
Class DomainException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.squashtest.csp.tm.domain.DomainException
All Implemented Interfaces:
Serializable, org.squashtest.tm.core.foundation.i18n.Internationalizable
Direct Known Subclasses:
CodeAlreadyExistsException, CodeDoesNotMatchesPattern, DuplicateNameException, IssueAlreadyBoundException, NameAlreadyInUseException, OptionAlreadyExistException, PasswordChangeFailedException, WrongStringSizeException

public abstract class DomainException
extends RuntimeException
implements org.squashtest.tm.core.foundation.i18n.Internationalizable

See Also:
Serialized Form

Constructor Summary
protected DomainException(String field)
           
protected DomainException(String message, String field)
           
 
Method Summary
 String getDefaultMessage()
           
 String getField()
           
 Object[] getI18nParams()
          Can be overridden by subclasses to return the params to use when fetching the i18n'd message.
 String getObjectName()
           
 void setObjectName(String objectName)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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
 
Methods inherited from interface org.squashtest.tm.core.foundation.i18n.Internationalizable
getI18nKey
 

Constructor Detail

DomainException

protected DomainException(String message,
                          String field)

DomainException

protected DomainException(String field)
Method Detail

getObjectName

public String getObjectName()

getField

public String getField()

getDefaultMessage

public String getDefaultMessage()

getI18nParams

public Object[] getI18nParams()
Can be overridden by subclasses to return the params to use when fetching the i18n'd message.

Returns:
should never return null

setObjectName

public void setObjectName(String objectName)


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.