com.esri.core.io
Class EsriSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.esri.core.io.EsriSecurityException
All Implemented Interfaces:
EsriErrorCode, Serializable

public class EsriSecurityException
extends Exception
implements EsriErrorCode

An Exception that describes problems encountered while accessing secure ArcGIS services.

See Also:
Serialized Form

Field Summary
static int AUTHENTICATION_FAILED
          Server failed to authenticate the user.
static int TOKEN_INVALID
          User supplied token was invalid.
static int TOKEN_SERVICE_NOT_FOUND
          Token service not found.
static int UNTRUSTED_SERVER_CERTIFICATE
          The server is not trusted.
 
Constructor Summary
EsriSecurityException(int code)
          Instantiates an object of EsriSecurityException
EsriSecurityException(int code, String msg)
          Instantiates an EsriServiceException with the given error message.
EsriSecurityException(int code, String msg, Throwable throwable)
          Instantiates an object of EsriSecurityException
EsriSecurityException(Throwable th)
          Instantiates an object of EsriSecurityException
 
Method Summary
 int getCode()
          Return the exception code.
 String getDescription()
          Returns the error description
static String getMSG(int code)
          Returns a string representation of this object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTHENTICATION_FAILED

public static final int AUTHENTICATION_FAILED
Server failed to authenticate the user.

See Also:
Constant Field Values

TOKEN_INVALID

public static final int TOKEN_INVALID
User supplied token was invalid.

See Also:
Constant Field Values

TOKEN_SERVICE_NOT_FOUND

public static final int TOKEN_SERVICE_NOT_FOUND
Token service not found. Either the token service is either unreachable or DNS name resolution failed.

See Also:
Constant Field Values

UNTRUSTED_SERVER_CERTIFICATE

public static final int UNTRUSTED_SERVER_CERTIFICATE
The server is not trusted.

See Also:
Constant Field Values
Constructor Detail

EsriSecurityException

public EsriSecurityException(int code)
Instantiates an object of EsriSecurityException

Parameters:
code - the error code

EsriSecurityException

public EsriSecurityException(Throwable th)
Instantiates an object of EsriSecurityException

Parameters:
th - the cause

EsriSecurityException

public EsriSecurityException(int code,
                             String msg,
                             Throwable throwable)
Instantiates an object of EsriSecurityException

Parameters:
msg - the error message
throwable - the cause

EsriSecurityException

public EsriSecurityException(int code,
                             String msg)
Instantiates an EsriServiceException with the given error message.

Parameters:
msg - the error message
Method Detail

getCode

public int getCode()
Return the exception code.

Specified by:
getCode in interface EsriErrorCode
Returns:
the exception code.

getMSG

public static String getMSG(int code)
Returns a string representation of this object


getDescription

public String getDescription()
Description copied from interface: EsriErrorCode
Returns the error description

Specified by:
getDescription in interface EsriErrorCode


Copyright © 2012. All Rights Reserved.