com.thetransactioncompany.util
Class PropertyParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.thetransactioncompany.util.PropertyParseException
All Implemented Interfaces:
Serializable

public class PropertyParseException
extends Exception

Thrown on a property parse exception. Intended to report missing or invalid properties.

Author:
Vladimir Dzhuvinov
See Also:
PropertyRetriever, Serialized Form

Constructor Summary
PropertyParseException(String message)
          Creates a new property parse exception with the specified message.
PropertyParseException(String message, String propertyKey)
          Creates a new property parse exception with the specified message and property key.
PropertyParseException(String message, String propertyKey, String propertyValue)
          Creates a new property parse exception with the specified message, property key and property value.
 
Method Summary
 String getPropertyKey()
          Returns the key of the property that caused the exception, null if unknown or not applicable.
 String getPropertyValue()
          Returns the value of the property that caused the exception, null if unknown or not applicable.
 
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

PropertyParseException

public PropertyParseException(String message)
Creates a new property parse exception with the specified message.

Parameters:
message - The exception message.

PropertyParseException

public PropertyParseException(String message,
                              String propertyKey)
Creates a new property parse exception with the specified message and property key.

Parameters:
message - The exception message.
propertyKey - The key of the property that caused the exception, null if unknown or not applicable.

PropertyParseException

public PropertyParseException(String message,
                              String propertyKey,
                              String propertyValue)
Creates a new property parse exception with the specified message, property key and property value.

Parameters:
message - The exception message.
propertyKey - The key of the property that caused the exception, null if unknown or not applicable.
propertyValue - The value of the property that caused the exception, null if unknown or not applicable.
Method Detail

getPropertyKey

public String getPropertyKey()
Returns the key of the property that caused the exception, null if unknown or not applicable.

Returns:
The key of the offending property.

getPropertyValue

public String getPropertyValue()
Returns the value of the property that caused the exception, null if unknown or not applicable.

Returns:
The value of the offending property.


Copyright © 2013 The Transaction Company. All Rights Reserved.