de.danet.an.workflow.api
Class ImportException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byde.danet.an.workflow.api.ImportException
All Implemented Interfaces:
java.io.Serializable

public class ImportException
extends java.lang.Exception
implements java.io.Serializable

This exception is thrown by the importProcessDefinitions method of ProcessDefinitionDirectory and results from collected errors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ImportException(java.lang.String msg, java.util.List prioritizedMessages)
          Construct a ImportException from a collecting error handler.
 
Method Summary
 java.util.List messages()
          Return all messages, i.e. warnings, errors and fatal errors.
 
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

ImportException

public ImportException(java.lang.String msg,
                       java.util.List prioritizedMessages)
Construct a ImportException from a collecting error handler. The warnings, errors, fatal error of the Exception are taken from the error handler.

Parameters:
msg - the main message of the exception.
prioritizedMessages - the given prioritized messages.
Method Detail

messages

public java.util.List messages()
Return all messages, i.e. warnings, errors and fatal errors. The value returned is a list of PrioritizedMessage.

Returns:
list with error messages (may be empty).