com.sun.xml.ws.util.exception
Class LocatableWebServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by com.sun.xml.ws.util.exception.LocatableWebServiceException
All Implemented Interfaces:
Serializable

public class LocatableWebServiceException
extends javax.xml.ws.WebServiceException

WebServiceException with source location informaiton.

This exception should be used wherever the location information is available, so that the location information is carried forward to users (to assist error diagnostics.)

See Also:
Serialized Form

Constructor Summary
LocatableWebServiceException(String message, Locator... location)
           
LocatableWebServiceException(String message, Throwable cause, Locator... location)
           
LocatableWebServiceException(String message, Throwable cause, javax.xml.stream.XMLStreamReader locationSource)
           
LocatableWebServiceException(String message, javax.xml.stream.XMLStreamReader locationSource)
           
LocatableWebServiceException(Throwable cause, Locator... location)
           
LocatableWebServiceException(Throwable cause, javax.xml.stream.XMLStreamReader locationSource)
           
 
Method Summary
 List<Locator> getLocation()
          Locations related to this exception.
 
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
 

Constructor Detail

LocatableWebServiceException

public LocatableWebServiceException(String message,
                                    Locator... location)

LocatableWebServiceException

public LocatableWebServiceException(String message,
                                    Throwable cause,
                                    Locator... location)

LocatableWebServiceException

public LocatableWebServiceException(Throwable cause,
                                    Locator... location)

LocatableWebServiceException

public LocatableWebServiceException(String message,
                                    javax.xml.stream.XMLStreamReader locationSource)

LocatableWebServiceException

public LocatableWebServiceException(String message,
                                    Throwable cause,
                                    javax.xml.stream.XMLStreamReader locationSource)

LocatableWebServiceException

public LocatableWebServiceException(Throwable cause,
                                    javax.xml.stream.XMLStreamReader locationSource)
Method Detail

getLocation

@NotNull
public List<Locator> getLocation()
Locations related to this exception.

Returns:
Can be empty but never null.