com.flexive.shared.exceptions
Class FxInvalidParameterException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.flexive.shared.exceptions.FxApplicationException
              extended by com.flexive.shared.exceptions.FxInvalidParameterException
All Implemented Interfaces:
FxLocalizedException, java.io.Serializable

public class FxInvalidParameterException
extends FxApplicationException

Exception that can occur whenever an invalid parameter was passed (localized). The name of the parameter is (always) the first parameter of any constructor and can be retrieved with getParameter().

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.exceptions.FxApplicationException
message
 
Constructor Summary
FxInvalidParameterException(java.lang.String parameter, FxApplicationException converted)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, FxApplicationException converted)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, java.lang.String key)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, java.lang.String key, java.lang.Object... values)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, java.lang.String message, java.lang.Throwable cause)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, java.lang.Throwable cause)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, org.apache.commons.logging.Log log, java.lang.Throwable cause, java.lang.String key, java.lang.Object... values)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, java.lang.String key)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, java.lang.String key, java.lang.Object... values)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, java.lang.String message, java.lang.Throwable cause)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, java.lang.Throwable cause)
          Localized exception constructor
FxInvalidParameterException(java.lang.String parameter, java.lang.Throwable cause, java.lang.String key, java.lang.Object... values)
          Localized exception constructor
 
Method Summary
 java.lang.String getParameter()
          Get the name of the parameter flagged as invalid
 FxInvalidParameterException setAffectedXPath(java.lang.String affectedXPath, FxContentExceptionCause cause)
          Set the affected XPath that caused this Exception to be thrown
 
Methods inherited from class com.flexive.shared.exceptions.FxApplicationException
asRuntimeException, getAffectedXPath, getContentExceptionCause, getExceptionMessage, getMessage, getMessage, getMessage, getMessage, hasAffectedXPath, isMessageLogged, messageLogged
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   FxApplicationException converted)
Localized exception constructor

Parameters:
converted -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   FxApplicationException converted)
Localized exception constructor

Parameters:
log -
converted -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   java.lang.String key,
                                   java.lang.Object... values)
Localized exception constructor

Parameters:
key -
values -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   java.lang.String key,
                                   java.lang.Object... values)
Localized exception constructor

Parameters:
log -
key -
values -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   java.lang.Throwable cause,
                                   java.lang.String key,
                                   java.lang.Object... values)
Localized exception constructor

Parameters:
cause -
key -
values -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   java.lang.Throwable cause,
                                   java.lang.String key,
                                   java.lang.Object... values)
Localized exception constructor

Parameters:
log -
cause -
key -
values -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   java.lang.String key)
Localized exception constructor

Parameters:
key -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   java.lang.String key)
Localized exception constructor

Parameters:
log -
key -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   java.lang.String message,
                                   java.lang.Throwable cause)
Localized exception constructor

Parameters:
message -
cause -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   java.lang.String message,
                                   java.lang.Throwable cause)
Localized exception constructor

Parameters:
log -
message -
cause -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   java.lang.Throwable cause)
Localized exception constructor

Parameters:
cause -

FxInvalidParameterException

public FxInvalidParameterException(java.lang.String parameter,
                                   org.apache.commons.logging.Log log,
                                   java.lang.Throwable cause)
Localized exception constructor

Parameters:
log -
cause -
Method Detail

getParameter

public java.lang.String getParameter()
Get the name of the parameter flagged as invalid

Returns:
name of the parameter flagged as invalid

setAffectedXPath

public FxInvalidParameterException setAffectedXPath(java.lang.String affectedXPath,
                                                    FxContentExceptionCause cause)
Set the affected XPath that caused this Exception to be thrown

Overrides:
setAffectedXPath in class FxApplicationException
Parameters:
affectedXPath - XPath that caused this Exception to be thrown
cause - the cause of the exception
Returns:
this