at.ac.tuwien.infosys.sm4all.copal.api.util
Class MissingFieldException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by at.ac.tuwien.infosys.sm4all.copal.api.ContextException
              extended by at.ac.tuwien.infosys.sm4all.copal.api.event.MalformedDocumentException
                  extended by at.ac.tuwien.infosys.sm4all.copal.api.util.FailedUnmarshallingException
                      extended by at.ac.tuwien.infosys.sm4all.copal.api.util.MissingFieldException
All Implemented Interfaces:
java.io.Serializable

public class MissingFieldException
extends FailedUnmarshallingException

Exception for when an unmarshaled Document is missing a required field. Field can be any Node in the Document.

Author:
sanjin
See Also:
Serialized Form

Constructor Summary
MissingFieldException(java.lang.String fieldName)
          Creates missing a required field exception with specified name of missing field.
MissingFieldException(java.lang.String fieldName, java.lang.Throwable cause)
          Creates missing a required field exception with specified name of missing field and cause.
 
Method Summary
 java.lang.String getFieldName()
          Returns the name of missing field.
 
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

MissingFieldException

public MissingFieldException(java.lang.String fieldName)
Creates missing a required field exception with specified name of missing field. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable).

Parameters:
fieldName - the name of missing field (which is saved for later retrieval by the getFieldName() method).

MissingFieldException

public MissingFieldException(java.lang.String fieldName,
                             java.lang.Throwable cause)
Creates missing a required field exception with specified name of missing field and cause.

Parameters:
fieldName - the name of missing field (which is saved for later retrieval by the getFieldName() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns the name of missing field.

Returns:
the name of missing field.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.