com.sap.netweaver.bc.uwl.substitution

Class SubstitutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sap.netweaver.bc.uwl.UWLException
              extended by com.sap.netweaver.bc.uwl.substitution.SubstitutionException
All Implemented Interfaces:
Serializable

public class SubstitutionException
extends UWLException

This exception is thrown by substitution related methods. SubstitutionException is thrown by all Substituion Connectors in case of substitution problem.
Also, if any relevant calls related to subsitution fails in the provider system, then throw the exception.
Connector should try to use error codes available in ErrorMessages.Codes whenever it is appropriate:

                ErrorMessages.Codes.NO_SUBSTITUTION_SUPPORT
                ErrorMessages.Codes.UNKNOWN_SUBSTITUTION_PROFILE
                ErrorMessages.Codes.NO_SUBSTITUTION_ON_OFF_SUPPORT
                ErrorMessages.Codes.SUBSTITUTION_ALREADY_EXIST
                ErrorMessages.Codes.NO_DATE_SUPPORT_FOR_SUBSTITUTION
                ErrorMessages.Codes.JCO_CONNECTION_PROBLEM 
                ErrorMessages.Codes.INCOMPATIBLE_PORTALUSER
                ErrorMessages.Codes.SUBPROFILE_NOT_SUPPORTED
                ErrorMessages.Codes.MULTIPLE_SUBPROFILE_NOT_SUPPORTED
                ErrorMessages.Codes.ERROR_FROM_PROVIDER
 

See Also:
ErrorMessages, Serialized Form

Constructor Summary
SubstitutionException(int code)
          Use this api when sure about the error code to use
SubstitutionException(int code, String message)
          * Use this api when sure about the error code to use
SubstitutionException(int code, Throwable original)
          * Use this api when sure about the error code to use
SubstitutionException(String message)
          Use this api to provide error message without error code
SubstitutionException(Throwable original)
           
 
Method Summary
 
Methods inherited from class com.sap.netweaver.bc.uwl.UWLException
getCode, getLocalizedMessage, getMessage, getOriginalException, getUwlExceptionID, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubstitutionException

public SubstitutionException(int code)
Use this api when sure about the error code to use

Parameters:
code - error code defined in ErrorMessages.Codes

SubstitutionException

public SubstitutionException(int code,
                             String message)
* Use this api when sure about the error code to use

Parameters:
code - error code defined in ErrorMessages.Codes
message - argument or additional message

SubstitutionException

public SubstitutionException(int code,
                             Throwable original)
* Use this api when sure about the error code to use

Parameters:
code - error code defined in ErrorMessages.Codes
original - the original exception

SubstitutionException

public SubstitutionException(String message)
Use this api to provide error message without error code

Parameters:
message -

SubstitutionException

public SubstitutionException(Throwable original)


Copyright 2009 SAP AG Complete Copyright Notice