org.eclipse.stardust.common.error
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.stardust.common.error.ApplicationException
                  extended by org.eclipse.stardust.common.error.PublicException
                      extended by org.eclipse.stardust.common.error.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends PublicException

Thrown to indicate that validation of a model element has failed.

Version:
$Revision$
Author:
ubirkemeyer
See Also:
Serialized Form

Constructor Summary
ValidationException(String summary, boolean canClose)
          Creates a new exception instance with the specified detail message.
ValidationException(String summary, Collection messages, boolean canClose)
          Creates a new exception instance with the specified detail message.
 
Method Summary
 boolean canClose()
          Returns if displayed deployment validation messages can be closed.
 Collection getMessages()
          Returns all validation messages for this validation exception.
 
Methods inherited from class org.eclipse.stardust.common.error.ApplicationException
getError, getInner, getLocalizedMessage, isLogged, setLogged, setResourceBundle
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(String summary,
                           boolean canClose)
Creates a new exception instance with the specified detail message.

Parameters:
summary - The detail message describing the error condition.
canClose - Flag if displayed deployment warnings can be closed.

ValidationException

public ValidationException(String summary,
                           Collection messages,
                           boolean canClose)
Creates a new exception instance with the specified detail message.

Parameters:
summary - The detail message describing the error condition.
messages - All validation messages for this validation exception.
canClose - Flag if displayed deployment warnings can be closed.
Method Detail

getMessages

public Collection getMessages()
Returns all validation messages for this validation exception.

Returns:
validation messages

canClose

public boolean canClose()
Returns if displayed deployment validation messages can be closed.

Returns:
Flag if displayed warnings can be closed.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.