org.hibersap
Class SapException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.hibersap.HibersapException
                  extended by org.hibersap.SapException
All Implemented Interfaces:
Serializable

public class SapException
extends HibersapException

A SapException holds error messages corresponding to the values of SAP return structures. These are commonly used in SAP functions to inform the client about any errors, warnings or other information. It is used by the org.hibersap.interceptor.impl.SapErrorInterceptor but can be utilized by the application to make its own evaluations of SAP return structures.

Author:
Carsten Erker
See Also:
SapErrorInterceptor, Serialized Form

Nested Class Summary
static class SapException.SapError
          Hold information about (error, warning, info, etc.) values returned by a SAP function.
 
Constructor Summary
SapException(List<SapException.SapError> sapErrors)
           
SapException(SapException.SapError sapError)
           
 
Method Summary
 List<SapException.SapError> getErrors()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SapException

public SapException(List<SapException.SapError> sapErrors)

SapException

public SapException(SapException.SapError sapError)
Method Detail

getErrors

public List<SapException.SapError> getErrors()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.