com.deltaxml.sync.jaxp
Class FailureSeverity

java.lang.Object
  extended by com.deltaxml.sync.jaxp.FailureSeverity

public class FailureSeverity
extends Object

Defines the severity of a SynchronizerProcessingException. Depending on the severity, the synchronization process may continue or terminate. The severities also correspond to the 3 exception reporting methods used in the ErrorListener, so that for example all SynchronizerProcessingExceptions reported through the warning method will have Severity WARNING. The code is based on type-safe enum pattern (See item 21 of Joshua Bloch's 'Effective Java', ISBN: 0201310058).

Version:
$Revision: 3109 $
Author:
Nigel Whitaker

Field Summary
static FailureSeverity ERROR
          An ERROR Severity is one which may affect the viability of the Synchronization result.
static FailureSeverity FATAL_ERROR
          A SynchronizerProcessingException with FATAL_ERROR severity is one which may cause subsequent processing to terminate without producing any results.
static FailureSeverity WARNING
          A SynchronizerProcessingException with WARNING severity is one in which dubious input data has been detected.
 
Method Summary
 String toString()
          Produces a String representation of the Severity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final FailureSeverity ERROR
An ERROR Severity is one which may affect the viability of the Synchronization result.


FATAL_ERROR

public static final FailureSeverity FATAL_ERROR
A SynchronizerProcessingException with FATAL_ERROR severity is one which may cause subsequent processing to terminate without producing any results.


WARNING

public static final FailureSeverity WARNING
A SynchronizerProcessingException with WARNING severity is one in which dubious input data has been detected.

Method Detail

toString

public String toString()
Produces a String representation of the Severity.

Overrides:
toString in class Object


© 2006-2007 DeltaXML Ltd. All Rights Reserved.