Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.rmi.server

Class ServerCloneException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.CloneNotSupportedException
         |
         +--java.rmi.server.ServerCloneException


public class ServerCloneException

extends CloneNotSupportedException

Thrown if a remote exception occurs during the cloning process of a UnicastRemoteObject.

Since:Author:See Also:

Field Summary

java.lang.Exceptiondetail

The cause of this exception.

Constructor Summary

ServerCloneException(java.lang.String s)

Create an exception with a message.
ServerCloneException(java.lang.String s, java.lang.Exception e)

Create an exception with a message and a cause.

Method Summary

java.lang.ThrowablegetCause()

Returns the cause of this exception.
java.lang.StringgetMessage()

This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ? "" : "; nested exception is:\n\t" + detail).

Field Details

detail

public Exception detail

The cause of this exception. This pre-dates the exception chaining of Throwable; and although you can change this field, you are wiser to leave it alone.


Constructor Details

ServerCloneException

public ServerCloneException(java.lang.String s)

Create an exception with a message.

Parameters:


ServerCloneException

public ServerCloneException(java.lang.String s, java.lang.Exception e)

Create an exception with a message and a cause.

Parameters:


Method Details

getCause

public Throwable getCause()

Returns the cause of this exception. Note that this may not be the original cause, thanks to the detail field being public and non-final (yuck). However, to avoid violating the contract of Throwable.getCause(), this returns null if detail == this, as no exception can be its own cause.

Since:Returns:


getMessage

public String getMessage()

This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ? "" : "; nested exception is:\n\t" + detail).

Returns: