ezvcard.io
Class EmbeddedVCardException

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.EmbeddedVCardException
All Implemented Interfaces:
Serializable

public class EmbeddedVCardException
extends VCardException

Thrown during the marshalling/unmarshalling of a property to signal to the marshaller that the property's value is a nested (2.1 style) or embedded (3.0 style) vCard.

Author:
Michael Angstadt
See Also:
Serialized Form

Nested Class Summary
static interface EmbeddedVCardException.InjectionCallback
          Injects an unmarshalled vCard into the property object.
 
Constructor Summary
EmbeddedVCardException(EmbeddedVCardException.InjectionCallback callback)
          Thrown to unmarshal a nested or embedded vCard.
EmbeddedVCardException(VCard vcard)
          Thrown to marshal a nested or embedded vCard.
 
Method Summary
 VCardProperty getProperty()
          Gets the property object that threw the exception.
 VCard getVCard()
          Gets the vCard to marshal.
 void injectVCard(VCard vcard)
          Injects the unmarshalled vCard into the property object that threw this exception.
 
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

EmbeddedVCardException

public EmbeddedVCardException(EmbeddedVCardException.InjectionCallback callback)
Thrown to unmarshal a nested or embedded vCard.

Parameters:
callback - injects the unmarshalled vCard into the property object

EmbeddedVCardException

public EmbeddedVCardException(VCard vcard)
Thrown to marshal a nested or embedded vCard.

Parameters:
vcard - the vCard to marshal
Method Detail

getVCard

public VCard getVCard()
Gets the vCard to marshal.

Returns:
the vCard to marshal

injectVCard

public void injectVCard(VCard vcard)
Injects the unmarshalled vCard into the property object that threw this exception.

Parameters:
vcard - the vCard to inject

getProperty

public VCardProperty getProperty()
Gets the property object that threw the exception.

Returns:
the property object


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