org.apache.ws.scout.registry
Class RegistryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.ws.scout.registry.RegistryException
All Implemented Interfaces:
java.io.Serializable

public class RegistryException
extends java.lang.Exception

Thrown to indicate that a UDDI Exception was encountered. Borrowed from jUDDI project.

Author:
Steve Viens (sviens@apache.org)
See Also:
Serialized Form

Field Summary
static int E_ACCOUNT_LIMIT_EXCEEDED
           
static int E_ASSERTION_NOT_FOUND
           
static int E_AUTH_TOKEN_EXPIRED
           
static int E_AUTH_TOKEN_REQUIRED
           
static int E_BUSY
           
static int E_CATEGORIZATION_NOT_ALLOWED
           
static int E_FATAL_ERROR
           
static int E_INVALID_CATEGORY
           
static int E_INVALID_COMPLETION_STATUS
           
static int E_INVALID_KEY_PASSED
           
static int E_INVALID_PROJECTION
           
static int E_INVALID_TIME
           
static int E_INVALID_URL_PASSED
           
static int E_INVALID_VALUE
           
static int E_KEY_RETIRED
           
static int E_LANGUAGE_ERROR
           
static int E_MESSAGE_TOO_LARGE
           
static int E_NAME_TOO_LONG
           
static int E_OPERATOR_MISMATCH
           
static int E_PUBLISHER_CANCELLED
           
static int E_REQUEST_DENIED
           
static int E_REQUEST_TIMEOUT
           
static int E_RESULT_SET_TOO_LARGE
           
static int E_SECRET_UNKNOWN
           
static int E_SUCCESS
           
static int E_TOO_MANY_OPTIONS
           
static int E_TRANSFER_ABORTED
           
static int E_UNKNOWN_USER
           
static int E_UNRECOGNIZED_VERSION
           
static int E_UNSUPPORTED
           
static int E_UNVALIDATABLE
           
static int E_USER_MISMATCH
           
static int E_VALUE_NOT_ALLOWED
           
 
Constructor Summary
RegistryException(java.lang.Exception ex)
          Constructs a RegistryException instance.
RegistryException(java.lang.String msg)
          Constructs a RegistryException instance.
RegistryException(java.lang.String fCode, java.lang.String fString, java.lang.String fActor, DispositionReport dispRpt)
          Constructs a RegistryException instance.
 
Method Summary
 void addResult(Result result)
          Adds a result instance to this Exception.
 DispositionReport getDispositionReport()
          Returns the disposition report associated with this jUDDI exception.
 java.lang.String getFaultActor()
          Returns the fault actor of this SOAP SOAPFault.
 java.lang.String getFaultCode()
          Returns the fault code of this SOAP SOAPFault.
 java.lang.String getFaultString()
          Returns the fault string of this SOAP SOAPFault.
static java.lang.String lookupErrCode(int errno)
           
 void setDispositionReport(DispositionReport dispRpt)
          Sets the UDDI DispositionReport value to the instance specified
 void setFaultActor(java.lang.String actor)
          Sets the fault actor of this SOAP SOAPFault to the given value.
 void setFaultCode(java.lang.String code)
          Sets the fault code of this SOAP SOAPFault to the given value.
 void setFaultString(java.lang.String value)
          Sets the fault string of this SOAP SOAPFault to the given value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

E_ASSERTION_NOT_FOUND

public static final int E_ASSERTION_NOT_FOUND
See Also:
Constant Field Values

E_AUTH_TOKEN_EXPIRED

public static final int E_AUTH_TOKEN_EXPIRED
See Also:
Constant Field Values

E_AUTH_TOKEN_REQUIRED

public static final int E_AUTH_TOKEN_REQUIRED
See Also:
Constant Field Values

E_ACCOUNT_LIMIT_EXCEEDED

public static final int E_ACCOUNT_LIMIT_EXCEEDED
See Also:
Constant Field Values

E_BUSY

public static final int E_BUSY
See Also:
Constant Field Values

E_CATEGORIZATION_NOT_ALLOWED

public static final int E_CATEGORIZATION_NOT_ALLOWED
See Also:
Constant Field Values

E_FATAL_ERROR

public static final int E_FATAL_ERROR
See Also:
Constant Field Values

E_INVALID_KEY_PASSED

public static final int E_INVALID_KEY_PASSED
See Also:
Constant Field Values

E_INVALID_PROJECTION

public static final int E_INVALID_PROJECTION
See Also:
Constant Field Values

E_INVALID_CATEGORY

public static final int E_INVALID_CATEGORY
See Also:
Constant Field Values

E_INVALID_COMPLETION_STATUS

public static final int E_INVALID_COMPLETION_STATUS
See Also:
Constant Field Values

E_INVALID_URL_PASSED

public static final int E_INVALID_URL_PASSED
See Also:
Constant Field Values

E_INVALID_VALUE

public static final int E_INVALID_VALUE
See Also:
Constant Field Values

E_KEY_RETIRED

public static final int E_KEY_RETIRED
See Also:
Constant Field Values

E_LANGUAGE_ERROR

public static final int E_LANGUAGE_ERROR
See Also:
Constant Field Values

E_MESSAGE_TOO_LARGE

public static final int E_MESSAGE_TOO_LARGE
See Also:
Constant Field Values

E_NAME_TOO_LONG

public static final int E_NAME_TOO_LONG
See Also:
Constant Field Values

E_OPERATOR_MISMATCH

public static final int E_OPERATOR_MISMATCH
See Also:
Constant Field Values

E_PUBLISHER_CANCELLED

public static final int E_PUBLISHER_CANCELLED
See Also:
Constant Field Values

E_REQUEST_DENIED

public static final int E_REQUEST_DENIED
See Also:
Constant Field Values

E_SECRET_UNKNOWN

public static final int E_SECRET_UNKNOWN
See Also:
Constant Field Values

E_SUCCESS

public static final int E_SUCCESS
See Also:
Constant Field Values

E_TOO_MANY_OPTIONS

public static final int E_TOO_MANY_OPTIONS
See Also:
Constant Field Values

E_TRANSFER_ABORTED

public static final int E_TRANSFER_ABORTED
See Also:
Constant Field Values

E_UNRECOGNIZED_VERSION

public static final int E_UNRECOGNIZED_VERSION
See Also:
Constant Field Values

E_UNKNOWN_USER

public static final int E_UNKNOWN_USER
See Also:
Constant Field Values

E_UNSUPPORTED

public static final int E_UNSUPPORTED
See Also:
Constant Field Values

E_USER_MISMATCH

public static final int E_USER_MISMATCH
See Also:
Constant Field Values

E_VALUE_NOT_ALLOWED

public static final int E_VALUE_NOT_ALLOWED
See Also:
Constant Field Values

E_UNVALIDATABLE

public static final int E_UNVALIDATABLE
See Also:
Constant Field Values

E_REQUEST_TIMEOUT

public static final int E_REQUEST_TIMEOUT
See Also:
Constant Field Values

E_INVALID_TIME

public static final int E_INVALID_TIME
See Also:
Constant Field Values

E_RESULT_SET_TOO_LARGE

public static final int E_RESULT_SET_TOO_LARGE
See Also:
Constant Field Values
Constructor Detail

RegistryException

public RegistryException(java.lang.String msg)
Constructs a RegistryException instance.

Parameters:
msg - additional error information

RegistryException

public RegistryException(java.lang.Exception ex)
Constructs a RegistryException instance.

Parameters:
ex - the original exception

RegistryException

public RegistryException(java.lang.String fCode,
                         java.lang.String fString,
                         java.lang.String fActor,
                         DispositionReport dispRpt)
Constructs a RegistryException instance.

Parameters:
fCode -
fString -
fActor -
dispRpt -
Method Detail

setFaultActor

public void setFaultActor(java.lang.String actor)
Sets the fault actor of this SOAP SOAPFault to the given value.

Parameters:
actor - The new actor value for this SOAP SOAPFault.

getFaultActor

public java.lang.String getFaultActor()
Returns the fault actor of this SOAP SOAPFault.

Returns:
The fault actor of this SOAP SOAPFault.

setFaultCode

public void setFaultCode(java.lang.String code)
Sets the fault code of this SOAP SOAPFault to the given value.

Parameters:
code - The new code number for this SOAP SOAPFault.

getFaultCode

public java.lang.String getFaultCode()
Returns the fault code of this SOAP SOAPFault.

Returns:
The fault code of this SOAP SOAPFault.

setFaultString

public void setFaultString(java.lang.String value)
Sets the fault string of this SOAP SOAPFault to the given value.

Parameters:
value - The new fault string for this SOAP SOAPFault.

getFaultString

public java.lang.String getFaultString()
Returns the fault string of this SOAP SOAPFault.

Returns:
The fault string of this SOAP SOAPFault.

setDispositionReport

public void setDispositionReport(DispositionReport dispRpt)
Sets the UDDI DispositionReport value to the instance specified

Parameters:
dispRpt - The new UDDI DispositionReport instance for this SOAP Fault.

getDispositionReport

public DispositionReport getDispositionReport()
Returns the disposition report associated with this jUDDI exception. It uses the results Vector to determine if a disposition report is present and should be returned.

Returns:
The disposition report associated with this jUDDI exception.

addResult

public void addResult(Result result)
Adds a result instance to this Exception. Multiple result objects may exist within a DispositionReport


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

lookupErrCode

public static final java.lang.String lookupErrCode(int errno)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.