org.hibersap.interceptor.impl
Class SapErrorInterceptor
java.lang.Object
org.hibersap.interceptor.impl.SapErrorInterceptor
- All Implemented Interfaces:
- Serializable, ExecutionInterceptor
public class SapErrorInterceptor
- extends Object
- implements ExecutionInterceptor
Throws a SapException after the execution of a BAPI call when SAP returned an Error message.
Checks the given RETURN structure or table parameter for the occurrence of the given error types.
The path to the RETURN structure and the error types are defined in the ThrowExceptionOnError
annotation.
- Author:
- Carsten Erker
- See Also:
ThrowExceptionOnError
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SapErrorInterceptor
public SapErrorInterceptor()
afterExecution
public void afterExecution(BapiMapping bapiMapping,
Map<String,Object> functionMap)
throws SapException
- Specified by:
afterExecution
in interface ExecutionInterceptor
- Throws:
SapException
beforeExecution
public void beforeExecution(BapiMapping bapiMapping,
Map<String,Object> functionMap)
- Specified by:
beforeExecution
in interface ExecutionInterceptor
Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.