public abstract class ExceptionMapper extends Object
| Constructor and Description | 
|---|
| ExceptionMapper() | 
| Modifier and Type | Method and Description | 
|---|---|
| static ExceptionMapper | getInstance()Returns the current instance of the Exception mapper to use. | 
| static void | setInstance(ExceptionMapper newInstance)Sets a new instance of an Exception mapper to use. | 
| abstract TorqueException | toTorqueException(SQLException sqlException)Maps a SQLException to an appropriate TorqueException. | 
public static final ExceptionMapper getInstance()
public static final void setInstance(ExceptionMapper newInstance)
newInstance - the new Exception mapper instance, not null.public abstract TorqueException toTorqueException(SQLException sqlException)
sqlException - the sqlException to map, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.