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.

Since:
1.0
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.s
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
clone, equals, finalize, 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
Since:
1.0

EsriSecurityException

public EsriSecurityException(Throwable th)
Instantiates an object of EsriSecurityException.

Parameters:
th - the cause
Since:
1.0

EsriSecurityException

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

Parameters:
code - the code
msg - the error message
throwable - the cause
Since:
1.0

EsriSecurityException

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

Parameters:
code - the code
msg - the error message
Since:
1.0
Method Detail

getCode

public int getCode()
Return the exception code.

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

getMSG

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

Parameters:
code - the code
Returns:
the MSG
Since:
1.0

getDescription

public String getDescription()
Returns the error description.s

Specified by:
getDescription in interface EsriErrorCode
Returns:
the description
Since:
1.0
See Also:
EsriErrorCode.getDescription()


Copyright © 2012. All Rights Reserved.