de.mguennewig.pobjects
Class PObjSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.mguennewig.pobjects.PObjException
              extended by de.mguennewig.pobjects.PObjSyntaxException
All Implemented Interfaces:
java.io.Serializable

public class PObjSyntaxException
extends PObjException

Thrown by Type to indicate a syntax error.

Author:
Michael Günnewig
See Also:
Type.checkSyntax(String), Type.parse(String), Serialized Form

Constructor Summary
PObjSyntaxException(java.lang.String errorKey, java.lang.Object... values)
          Creates a new PObjSyntaxException.
 
Method Summary
 java.lang.String format(java.util.ResourceBundle bundle)
          Formats this message into a localized text ready to present to the user.
 java.lang.String getErrorKey()
          Returns the message key for the error message.
 java.lang.Object[] getValues()
          Returns the list of optional values that should be inserted into the message.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PObjSyntaxException

public PObjSyntaxException(java.lang.String errorKey,
                           java.lang.Object... values)
Creates a new PObjSyntaxException.

Method Detail

getErrorKey

public final java.lang.String getErrorKey()
Returns the message key for the error message.


getValues

public final java.lang.Object[] getValues()
Returns the list of optional values that should be inserted into the message.


format

public final java.lang.String format(java.util.ResourceBundle bundle)
Formats this message into a localized text ready to present to the user.

Throws:
java.util.MissingResourceException - if the resource for the error key can not be found.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Throwable