com.sapportals.connector.execution.objects

Class AttributeNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.resource.ResourceException
              extended by com.sapportals.connector.ConnectorException
                  extended by com.sapportals.connector.execution.objects.InvalidQueryException
                      extended by com.sapportals.connector.execution.objects.AttributeNotFoundException
All Implemented Interfaces:
Serializable

public class AttributeNotFoundException
extends InvalidQueryException

Thrown when attempting access to an invalid attribute This exception overrides getLocalizedMessage() which returns a message localized for current user locale

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sapportals.connector.ConnectorException
localizedMessage
 
Constructor Summary
AttributeNotFoundException(String message)
          Constructor
AttributeNotFoundException(String message, String localizedString)
           
 
Method Summary
 String getLocalizedMessage()
           
 String toString()
          We need to override Throwable.toString() because it uses getLocalizedMessage() instead of ResourceException.getMessage() as specified in javadoc.
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

AttributeNotFoundException

public AttributeNotFoundException(String message)
Constructor

Parameters:
message - message string

AttributeNotFoundException

public AttributeNotFoundException(String message,
                                  String localizedString)
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class ConnectorException

toString

public String toString()
We need to override Throwable.toString() because it uses getLocalizedMessage() instead of ResourceException.getMessage() as specified in javadoc. toString() in turn is used in Throwable.printStackTrace() which would show localized message in the log otherwise.

Overrides:
toString in class ConnectorException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/connectivityfw/api api EP-PIN
[sap.com] FRAMEWORK-EXT [sap.com] tc/conn/connectorframeworkdeprecated - EP-CON-CF
[sap.com] FRAMEWORK-EXT [sap.com] tc/conn/connectorframeworkdeprecated default EP-CON-CF


Copyright 2015 SAP AG Complete Copyright Notice