com.iplanet.am.sdk
クラス AMException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 com.iplanet.am.sdk.AMException
直系の既知のサブクラス:
AMEntryExistsException, AMInvalidDNException, AMPostCallBackException, AMPreCallBackException

推奨されていません。 As of Sun Java System Access Manager 7.1.

public class AMException
extends Exception

The AMException is thrown whenever an error is is encountered while performing an operation on the data store.

関連項目:
直列化された形式

コンストラクタの概要
AMException(SSOToken token, String errorCode)
          推奨されていません。 Convenience method (protected)
AMException(SSOToken token, String errorCode, com.iplanet.ums.UMSException ue)
          推奨されていません。 Constructs a new AMException with detailed message.
AMException(String msg, String errorCode)
          推奨されていません。 Constructs a new AMException with detailed message.
AMException(String msg, String errorCode, Object[] args)
          推奨されていません。 Constructs a new AMException with detailed message.
AMException(String msg, String errorCode, Object[] args, com.iplanet.ums.UMSException ue)
          推奨されていません。 Constructs a new AMException with detailed message.
AMException(String msg, String errorCode, com.iplanet.ums.UMSException ue)
          推奨されていません。 Constructs a new AMException with detailed message.
 
メソッドの概要
 String getErrorCode()
          推奨されていません。 Returns the error code.
 String getL10NMessage(Locale locale)
          推奨されていません。 Returns localized error message.
 String getLDAPErrorCode()
          推奨されていません。 Method to obtain the LDAP error code.
 netscape.ldap.LDAPException getLDAPException()
          推奨されていません。 Returns the root LDAPException of this AMException, if any.
 String getMessage()
          推奨されていません。 Overrides the default getMessage() method of super class Exception.
 Object[] getMessageArgs()
          推奨されていません。 Returns the arguments corresponding to the error code.
 String getResourceBundleName()
          推奨されていません。 Returns ResourceBundle Name associated with this exception
 

コンストラクタの詳細

AMException

public AMException(String msg,
                   String errorCode)
推奨されていません。 
Constructs a new AMException with detailed message.

パラメータ:
msg - The detailed message
errorCode - Matches the appropriate entry in amProfile.properties.

AMException

public AMException(SSOToken token,
                   String errorCode)
推奨されていません。 
Convenience method (protected)


AMException

public AMException(String msg,
                   String errorCode,
                   com.iplanet.ums.UMSException ue)
推奨されていません。 
Constructs a new AMException with detailed message.

パラメータ:
msg - The detailed message.
errorCode - Matches the appropriate entry in amProfile.properties.
ue - if the root cause is a UMSException.

AMException

public AMException(SSOToken token,
                   String errorCode,
                   com.iplanet.ums.UMSException ue)
推奨されていません。 
Constructs a new AMException with detailed message.

パラメータ:
token - a valid single sign on token of the user performing the operation.
errorCode - Matches the appropriate entry in amProfile.properties.
ue - if the root cause is a UMSException.

AMException

public AMException(String msg,
                   String errorCode,
                   Object[] args)
推奨されていません。 
Constructs a new AMException with detailed message.

パラメータ:
msg - The detailed message.
errorCode - Matches the appropriate entry in amProfile.properties.
args - arguments if the error message needs specific values to be set.

AMException

public AMException(String msg,
                   String errorCode,
                   Object[] args,
                   com.iplanet.ums.UMSException ue)
推奨されていません。 
Constructs a new AMException with detailed message.

パラメータ:
msg - The detailed message
errorCode - Matches the appropriate entry in amProfile.properties.
args - if the error message needs specific values to be set.
ue - if the root cause is a UMSException.
メソッドの詳細

getErrorCode

public String getErrorCode()
推奨されていません。 
Returns the error code. This error code can be used with the arguments to construct a localized message.

戻り値:
the error code which can be used to map the message to a user specific locale.

getMessageArgs

public Object[] getMessageArgs()
推奨されていません。 
Returns the arguments corresponding to the error code.

戻り値:
the arguments corresponding to the error code or null if no arguments are need to construct the message.

getMessage

public String getMessage()
推奨されていません。 
Overrides the default getMessage() method of super class Exception.

オーバーライド:
クラス Throwable 内の getMessage
戻り値:
The error message string.

getLDAPErrorCode

public String getLDAPErrorCode()
推奨されていません。 
Method to obtain the LDAP error code.

戻り値:
The error code, which can be used to map the message to a specific locale. Returns a null, if not an LDAP error.

getLDAPException

public netscape.ldap.LDAPException getLDAPException()
推奨されていません。 
Returns the root LDAPException of this AMException, if any.

戻り値:
The LDAPException that caused this AMException. If null, it means no root LDAPException has been set.

getL10NMessage

public String getL10NMessage(Locale locale)
推奨されていません。 
Returns localized error message.

パラメータ:
locale - locale of the error message.
戻り値:
Localized error message.

getResourceBundleName

public String getResourceBundleName()
推奨されていません。 
Returns ResourceBundle Name associated with this exception

戻り値:
ResourceBundle Name associated with this exception.