ilog.views.prototypes
Class IlvValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ilog.views.prototypes.IlvValueException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IlvValuesNotHandledException

public class IlvValueException
extends Exception

Exceptions of the class IlvValueException are thrown by the IlvGroupElement subclasses. These exceptions indicate that an error occurred when one of the methods, set, get, or pushValues was called or when a value was converted.

See Also:
IlvGroupElement, IlvValuesNotHandledException, Serialized Form

Constructor Summary
IlvValueException(String message)
          Creates a new IlvValueException with the specified message.
 
Method Summary
 String getAllMessages()
          Returns the message associated with this exception and concatenates it with the messages related to the target exceptions, if any.
 String getMessage()
          Returns the message associated this exception.
 Enumeration getTargetExceptions()
          Returns the target exceptions, if any.
 void printAllStackTraces()
          Prints the stack traces of this exception and of all its subexceptions recursively.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

IlvValueException

public IlvValueException(String message)
Creates a new IlvValueException with the specified message.

Parameters:
message - the message describing the cause of the exception.
Method Detail

getTargetExceptions

public Enumeration getTargetExceptions()
Returns the target exceptions, if any. If this exception was thrown as a result of other lower-level exceptions being thrown (for example, if the setting of a value caused runtime exceptions to happen), an enumeration of these target exceptions is returned. Otherwise, this method returns null.

Returns:
an enumeration of Exception objects, or null.

getMessage

public String getMessage()
Returns the message associated this exception. If this exception was thrown because subexceptions have occurred during the execution of behavior objects, only the message of the last subexception is returned. To get the messages of all the subexceptions, use the getAllMessages() method.

Overrides:
getMessage in class Throwable
See Also:
getAllMessages()

getAllMessages

public String getAllMessages()
Returns the message associated with this exception and concatenates it with the messages related to the target exceptions, if any.


printAllStackTraces

public void printAllStackTraces()
Prints the stack traces of this exception and of all its subexceptions recursively.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.