ezvcard.io
Class CannotParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ezvcard.VCardException
                  extended by ezvcard.io.CannotParseException
All Implemented Interfaces:
Serializable

public class CannotParseException
extends VCardException

Thrown during the unmarshalling of a vCard property to signal that the property's value could not be parsed (for example, being unable to parse a date string).

Author:
Michael Angstadt
See Also:
Serialized Form

Constructor Summary
CannotParseException()
          Creates a new "cannot parse" exception.
CannotParseException(int code, Object... args)
          Creates a new "cannot parse" exception.
CannotParseException(String reason)
          Creates a new "cannot parse" exception.
 
Method Summary
 
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

CannotParseException

public CannotParseException()
Creates a new "cannot parse" exception.


CannotParseException

public CannotParseException(String reason)
Creates a new "cannot parse" exception.

Parameters:
reason - the reason why the property value cannot be parsed

CannotParseException

public CannotParseException(int code,
                            Object... args)
Creates a new "cannot parse" exception.

Parameters:
code - the code for retrieving the message text from the resource bundle
args - the message arguments


Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.