org.apache.juddi.error
Class RegistryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.juddi.error.RegistryException
All Implemented Interfaces:
java.io.Serializable, RegistryObject
Direct Known Subclasses:
AccountLimitExceededException, AssertionNotFoundException, AuthTokenExpiredException, AuthTokenRequiredException, BusyException, CategorizationNotAllowedException, FatalErrorException, InvalidCategoryException, InvalidCompletionStatusException, InvalidKeyPassedException, InvalidProjectionException, InvalidTimeException, InvalidURLPassedException, InvalidValueException, KeyRetiredException, LanguageErrorException, MessageTooLargeException, NameTooLongException, OperatorMismatchException, PublisherCancelledException, RequestDeniedException, RequestTimeoutException, ResultSetTooLargeException, SecretUnknownException, TooManyOptionsException, TransferAbortedException, UnknownUserException, UnrecognizedVersionException, UnsupportedException, UnvalidatableException, UserMismatchException, ValueNotAllowedException

public class RegistryException
extends java.lang.Exception
implements RegistryObject

Thrown to indicate that a UDDI Exception was encountered.

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

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 void main(java.lang.String[] args)
           
 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
 

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:
ex - the original exception
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

main

public static void main(java.lang.String[] args)
                 throws RegistryException
Throws:
RegistryException


Copyright © 2004-2007. All Rights Reserved.