com.sun.xml.ws.db.sdo.SDODatabindingException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdo-eclipselink-plugin Show documentation
Show all versions of sdo-eclipselink-plugin Show documentation
Pluggable databinding module employing Eclipselink SDO
package com.sun.xml.ws.db.sdo;
/**
* Created by IntelliJ IDEA.
* User: giglee
* Date: Apr 9, 2009
* Time: 1:30:52 PM
* To change this template use File | Settings | File Templates.
*/
public class SDODatabindingException extends RuntimeException {
//constructors to defer to base class
/**
* Default constructor.
*/
public SDODatabindingException() {
}
;
/**
* Creates an exception with the provided message.
*
* @param message the exception message.
*/
public SDODatabindingException(String message) {
super(message);
}
/**
* Creates an exception with the provided message and root cause.
*
* @param message the exception message.
* @param cause the root cause exception/throwable.
*/
public SDODatabindingException(String message, Throwable cause) {
super(message, cause);
}
/**
* Creates an exception with the provided root cause throwable.
*
* @param throwable the root cause.
*/
public SDODatabindingException(Throwable throwable) {
super(throwable);
}
public String getMessage() {
Throwable cause = getCause();
if (cause != null && cause.getMessage() != null && !super.getMessage().equals(cause.getMessage())) {
return super.getMessage() + ": "
+ cause.getMessage();
}
return super.getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy