org.hibersap.interceptor.impl
Class SapErrorInterceptor

java.lang.Object
  extended by 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

Constructor Summary
SapErrorInterceptor()
           
 
Method Summary
 void afterExecution(BapiMapping bapiMapping, Map<String,Object> functionMap)
           
 void beforeExecution(BapiMapping bapiMapping, Map<String,Object> functionMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SapErrorInterceptor

public SapErrorInterceptor()
Method Detail

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.