Example usage for java.rmi.activation UnknownObjectException UnknownObjectException

List of usage examples for java.rmi.activation UnknownObjectException UnknownObjectException

Introduction

In this page you can find the example usage for java.rmi.activation UnknownObjectException UnknownObjectException.

Prototype

public UnknownObjectException(String s) 

Source Link

Document

Constructs an UnknownObjectException with the specified detail message.

Usage

From source file:org.marketcetera.util.except.ExceptUtilsTest.java

@Test
public void equality() {
    assertTrue(ExceptUtils.areEqual(null, null));
    equalityHelper(new ActivationException(TEST_MSG_1), new ActivationException(TEST_MSG_1),
            new Throwable[] { new ActivationException(), new ActivationException(TEST_MSG_2),
                    new UnknownObjectException(TEST_MSG_1), new I18NException(), null });
    equalityHelper(// w  ww. j  ava2s .com
            new I18NException(new ActivationException(TEST_MSG_1),
                    new I18NBoundMessage1P(TestMessages.MID_EXCEPTION, MID_MSG_PARAM)),
            new I18NException(new ActivationException(TEST_MSG_1),
                    new I18NBoundMessage1P(TestMessages.MID_EXCEPTION, MID_MSG_PARAM)),
            new Throwable[] { new I18NException(new ActivationException(TEST_MSG_1)),
                    new I18NException(new ActivationException(TEST_MSG_1), TestMessages.BOT_EXCEPTION),
                    new I18NException(new ActivationException(TEST_MSG_2),
                            new I18NBoundMessage1P(TestMessages.MID_EXCEPTION, MID_MSG_PARAM)),
                    new I18NException(new I18NBoundMessage1P(TestMessages.MID_EXCEPTION, MID_MSG_PARAM)),
                    new ActivationException(TEST_MSG_1), null });
}