com.sapportals.connector

Class ConnectorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.resource.ResourceException
              extended bycom.sapportals.connector.ConnectorException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable
Direct Known Subclasses:
AttributeNotFoundException, CapabilityNotFoundException, CapabilityNotSupportedException, ConnectionClosedException, ConnectionFailedException, ElementNotFoundException, ExecutionException, FieldNotFoundException, FunctionNotFoundException, IndexNotFoundException, InterfaceNotSupportedException, InvalidConditionException, InvalidQueryException, InvalidQueryStringException, MethodNotFoundException, ParameterNotFoundException, RelationNotFoundException, TimeoutException

public class ConnectorException
extends ResourceException
implements com.sap.exception.IBaseException

The base connector exception. Used whenever a exception in the underlying API occurs. The underlying exception is available throw the getCause() method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
ConnectorException(Location loc, com.sap.localization.ResourceAccessor accessor, String key, Object[] parameters, Throwable rootCause)
          Constructor for specifying a localizable message, the action cause and the root cause.
ConnectorException(String message)
          Deprecated. use ConnectorException(Location,ResourceAccessor,String,Object[],Throwable)
 
Method Summary
 void finallyLocalize()
           
 void finallyLocalize(Locale locale)
           
 void finallyLocalize(Locale locale, TimeZone timeZone)
           
 void finallyLocalize(TimeZone timeZone)
           
 Throwable getCause()
           
 com.sap.localization.LocalizableText getLocalizableMessage()
           
 String getLocalizedMessage(Locale locale)
           
 String getLocalizedMessage(Locale locale, TimeZone timeZone)
           
 String getLocalizedMessage(TimeZone timeZone)
           
 String getNestedLocalizedMessage()
           
 String getNestedLocalizedMessage(Locale locale)
           
 String getNestedLocalizedMessage(Locale locale, TimeZone timeZone)
           
 String getNestedLocalizedMessage(TimeZone timeZone)
           
 String getNestedStackTraceString()
           
 String getStackTraceString()
           
 String getSystemStackTraceString()
           
 Throwable initCause(Throwable cause)
           
 void log()
          Deprecated.  
 void setLinkedException(Exception linkedException)
          Deprecated. use initCause(Throwable)
 void setLogSettings(Category category, int severity, Location location)
          Deprecated.  
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sap.exception.IBaseException
getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 

Constructor Detail

ConnectorException

public ConnectorException(String message)
Deprecated. use ConnectorException(Location,ResourceAccessor,String,Object[],Throwable)


ConnectorException

public ConnectorException(Location loc,
                          com.sap.localization.ResourceAccessor accessor,
                          String key,
                          Object[] parameters,
                          Throwable rootCause)
Constructor for specifying a localizable message, the action cause and the root cause.

Parameters:
loc - logging location which will be used in case of automatic tracing
accessor - accessor the resource accessor
key - key for text message
parameters - message parameters
rootCause - throwable object, which caused this exception
Method Detail

setLinkedException

public void setLinkedException(Exception linkedException)
Deprecated. use initCause(Throwable)


initCause

public Throwable initCause(Throwable cause)
Specified by:
initCause in interface com.sap.exception.IBaseException

getCause

public Throwable getCause()
Specified by:
getCause in interface com.sap.exception.IBaseException

getLocalizableMessage

public com.sap.localization.LocalizableText getLocalizableMessage()
Specified by:
getLocalizableMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public String getLocalizedMessage(TimeZone timeZone)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public String getLocalizedMessage(Locale locale,
                                  TimeZone timeZone)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public String getNestedLocalizedMessage()
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public String getNestedLocalizedMessage(Locale locale)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public String getNestedLocalizedMessage(TimeZone timeZone)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public String getNestedLocalizedMessage(Locale locale,
                                        TimeZone timeZone)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize()
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(Locale locale)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(TimeZone timeZone)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(Locale locale,
                            TimeZone timeZone)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

getSystemStackTraceString

public String getSystemStackTraceString()
Specified by:
getSystemStackTraceString in interface com.sap.exception.IBaseException

getStackTraceString

public String getStackTraceString()
Specified by:
getStackTraceString in interface com.sap.exception.IBaseException

getNestedStackTraceString

public String getNestedStackTraceString()
Specified by:
getNestedStackTraceString in interface com.sap.exception.IBaseException

setLogSettings

public void setLogSettings(Category category,
                           int severity,
                           Location location)
Deprecated.  

Specified by:
setLogSettings in interface com.sap.exception.IBaseException

log

public void log()
Deprecated.  

Specified by:
log in interface com.sap.exception.IBaseException


Copyright 2006 SAP AG Complete Copyright Notice