org.n52.security.common.artifact
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.n52.security.common.artifact.ClientException
All Implemented Interfaces:
Serializable

public class ClientException
extends RuntimeException

This exception is thrown when a client-side error occurres.

See Also:
Serialized Form

Field Summary
static String CONNECTION_FAILED
           
static String UNEXPECTED_MIME_TYPE
           
 
Constructor Summary
ClientException()
           
ClientException(String message)
           
ClientException(String message, Exception cause)
           
ClientException(String message, Exception cause, String code)
           
ClientException(String message, String code)
           
 
Method Summary
 Transferable getAsTransferable()
           
 String getAsXML()
           
 String getCode()
           
 void write(OutputStream out)
          writes a client exception XML document according to the specified OutputStream.
 
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

CONNECTION_FAILED

public static final String CONNECTION_FAILED
See Also:
Constant Field Values

UNEXPECTED_MIME_TYPE

public static final String UNEXPECTED_MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

ClientException

public ClientException()

ClientException

public ClientException(String message)

ClientException

public ClientException(String message,
                       String code)

ClientException

public ClientException(String message,
                       Exception cause)

ClientException

public ClientException(String message,
                       Exception cause,
                       String code)
Method Detail

write

public void write(OutputStream out)
           throws IOException
writes a client exception XML document according to the specified OutputStream.

Throws:
IOException

getAsXML

public String getAsXML()

getAsTransferable

public Transferable getAsTransferable()

getCode

public String getCode()


Copyright © 2004–2013 52north.org. All rights reserved.