com.sap.portal.pcm.admin

Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sap.portal.pcm.admin.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends Exception

The class that represents an error that occurs when trying to check the consistency of an object before saving it to the persistency.

See Also:
Serialized Form

Field Summary
protected static String NEWLINE
          For internal use.
 
Constructor Summary
ValidationException(String s)
          Constructs a ValidationException with a string message.
ValidationException(String s, Throwable exception)
          Constructs a ValidationException that wraps an exception.
 
Method Summary
 Throwable getException()
          Gets the original exception.
 String getMessage()
          Gets the message and the message of the original exception (if set).
 String getMessage(Locale locale)
          Gets the message and the message of the original exception (if set).
 void printStackTrace()
          Prints the stack trace of this exception and the nested exception (if set) to System.err.
 void printStackTrace(PrintStream out)
          Prints the stack trace of this exception and the nested exception (if set) to the specified PrintStream.
 void printStackTrace(PrintWriter out)
          Prints the stack trace of this exception and the nested exception (if set) to the specified PrintWriter.
 void setException(Throwable t)
          Sets the original exception.
 
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
 

Field Detail

NEWLINE

protected static final String NEWLINE
For internal use.

Constructor Detail

ValidationException

public ValidationException(String s)
Constructs a ValidationException with a string message.

Parameters:
s - a description of the exception

ValidationException

public ValidationException(String s,
                           Throwable exception)
Constructs a ValidationException that wraps an exception.

Parameters:
s - a description of the exception
exception - a Throwable object referring to the original exception
Method Detail

getException

public Throwable getException()
Gets the original exception.

Returns:
the original exception if it exists; null otherwise

setException

public void setException(Throwable t)
Sets the original exception.

Parameters:
t - the original exception

printStackTrace

public void printStackTrace(PrintStream out)
Prints the stack trace of this exception and the nested exception (if set) to the specified PrintStream.

Overrides:
printStackTrace in class Throwable
Parameters:
out - the PrintStream to which the stack trace is written

printStackTrace

public void printStackTrace(PrintWriter out)
Prints the stack trace of this exception and the nested exception (if set) to the specified PrintWriter.

Overrides:
printStackTrace in class Throwable
Parameters:
out - the PrintWriter to which the stack trace is written

printStackTrace

public void printStackTrace()
Prints the stack trace of this exception and the nested exception (if set) to System.err.

Overrides:
printStackTrace in class Throwable

getMessage

public String getMessage()
Gets the message and the message of the original exception (if set).

Overrides:
getMessage in class Throwable
Returns:
the message and the message of the original exception (if set)

getMessage

public String getMessage(Locale locale)
Gets the message and the message of the original exception (if set).

Parameters:
locale - not used
Returns:
the message and the message of the original exception (if set)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcm/admin/public/api api EP-PIN


Copyright 2013 SAP AG Complete Copyright Notice