org.xins.common.collections
Class MissingRequiredPropertyException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xins.common.collections.MissingRequiredPropertyException
All Implemented Interfaces:
Serializable

public final class MissingRequiredPropertyException
extends Exception

Exception thrown to indicate a required property has no value set for it.

Since:
XINS 1.0.0
Version:
$Revision: 1.21 $ $Date: 2008/07/04 10:22:50 $
Author:
Ernst de Haan
See Also:
InvalidPropertyValueException, Serialized Form

Constructor Summary
MissingRequiredPropertyException(String propertyName)
          Constructs a new MissingRequiredPropertyException.
MissingRequiredPropertyException(String propertyName, String detail)
          Constructs a new MissingRequiredPropertyException, with the specified detail message.
 
Method Summary
 String getDetail()
          Returns the detail message.
 String getPropertyName()
          Returns the name of the property.
 
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
 

Constructor Detail

MissingRequiredPropertyException

public MissingRequiredPropertyException(String propertyName,
                                        String detail)
                                 throws IllegalArgumentException
Constructs a new MissingRequiredPropertyException, with the specified detail message.

Parameters:
propertyName - the name of the required property, not null.
detail - a more detailed description of why this property is required in this context, can be null.
Throws:
IllegalArgumentException - if propertyName == null.
Since:
XINS 1.3.0

MissingRequiredPropertyException

public MissingRequiredPropertyException(String propertyName)
                                 throws IllegalArgumentException
Constructs a new MissingRequiredPropertyException.

Parameters:
propertyName - the name of the required property, not null.
Throws:
IllegalArgumentException - if propertyName == null.
Method Detail

getPropertyName

public String getPropertyName()
Returns the name of the property.

Returns:
the name of the property, never null.

getDetail

public String getDetail()
Returns the detail message.

Returns:
the trimmed detail message, can be null.
Since:
XINS 1.3.0


See http://www.xins.org/.