com.sun.jdo.api.persistence.model
Class ModelVetoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.jdo.api.persistence.model.ModelException
              extended by com.sun.jdo.api.persistence.model.ModelVetoException
All Implemented Interfaces:
Serializable

public class ModelVetoException
extends ModelException

Version:
%I%
Author:
raccah
See Also:
Serialized Form

Constructor Summary
ModelVetoException()
          Creates new ModelVetoException without detail message and null as the target exception.
ModelVetoException(String msg)
          Constructs an ModelVetoException with the specified detail message and null as the target exception..
ModelVetoException(Throwable target)
          Constructs a ModelVetoException with a target exception.
ModelVetoException(Throwable target, String s)
          Constructs a ModelVetoException with a target exception and a detail message.
 
Method Summary
 String getMessage()
          Returns the error message string of this throwable object.
 Throwable getTargetException()
          Get the thrown target exception.
 void printStackTrace()
          Prints the stack trace of the thrown target exception.
 void printStackTrace(PrintStream ps)
          Prints the stack trace of the thrown target exception to the specified print stream.
 void printStackTrace(PrintWriter pw)
          Prints the stack trace of the thrown target exception to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelVetoException

public ModelVetoException()
Creates new ModelVetoException without detail message and null as the target exception.


ModelVetoException

public ModelVetoException(String msg)
Constructs an ModelVetoException with the specified detail message and null as the target exception..

Parameters:
msg - the detail message.

ModelVetoException

public ModelVetoException(Throwable target)
Constructs a ModelVetoException with a target exception.


ModelVetoException

public ModelVetoException(Throwable target,
                          String s)
Constructs a ModelVetoException with a target exception and a detail message.

Method Detail

getTargetException

public Throwable getTargetException()
Get the thrown target exception.


getMessage

public String getMessage()
Returns the error message string of this throwable object.

Overrides:
getMessage in class Throwable
Returns:
the error message string of this ModelVetoException object if it was created with an error message string, the error message of the target exception if it was not created a message but the target exception has a message, or null if neither has an error message.

printStackTrace

public void printStackTrace()
Prints the stack trace of the thrown target exception.

Overrides:
printStackTrace in class Throwable
See Also:
System.err

printStackTrace

public void printStackTrace(PrintStream ps)
Prints the stack trace of the thrown target exception to the specified print stream.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter pw)
Prints the stack trace of the thrown target exception to the specified print writer.

Overrides:
printStackTrace in class Throwable


Copyright © 2012 GlassFish Community. All Rights Reserved.