com.sap.tc.complib.validate
Class ValidationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sap.tc.complib.validate.ValidationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CompartmentEmptyException, CompartmentLocalAndRemoteException, InvalidElementContent, InvalidFileFormatException, InvalidMemberException, MissingElementException, NameCheckException, NoBuildServerDefinedException
- public class ValidationException
- extends java.lang.Exception
This exception reports validation failures.
- See Also:
- Serialized Form
|
Method Summary |
java.lang.Throwable |
getCause()
get the excpetion that caused this ValidationException. |
java.lang.String |
getMessage()
get the excpetion message String |
void |
printStackTrace()
printStackTrace is overwritten, prints both stack traces
|
void |
printStackTrace(java.io.PrintStream ps)
printStackTrace is overwritten, prints both stack traces
|
void |
printStackTrace(java.io.PrintWriter pw)
printStackTrace is overwritten, prints both stack traces
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidationException
public ValidationException()
- Create a new ValidationException without message.
ValidationException
public ValidationException(java.lang.String message)
- Create a new ValidationException.
- Parameters:
message - the error or warning message.
ValidationException
public ValidationException(java.lang.String message,
java.lang.Throwable cause)
- Create a new ValidationException.
- Parameters:
message - the error or warning message.cause - the execption that caused this exception
getCause
public java.lang.Throwable getCause()
- get the excpetion that caused this
ValidationException.
getMessage
public java.lang.String getMessage()
- get the excpetion message String
- Overrides:
getMessage in class java.lang.Throwable
printStackTrace
public void printStackTrace()
printStackTrace is overwritten, prints both stack traces
- Overrides:
printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
printStackTrace is overwritten, prints both stack traces
- Overrides:
printStackTrace in class java.lang.Throwable
- Parameters:
ps - print stream to which stack trace is written
printStackTrace
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace is overwritten, prints both stack traces
- Overrides:
printStackTrace in class java.lang.Throwable
- Parameters:
pw - print writer to which stack trace is written