package won.protocol.exception;

import java.net.URI;
import java.text.MessageFormat;

/**
 * User: LEIH-NB Date: 20.02.14
 */
public class NoSuchSocketException extends WonProtocolException {
    private URI unknownSocketURI;

    public URI getUnknownAtomURI() {
        return unknownSocketURI;
    }

    public NoSuchSocketException(final URI unknownSocketURI) {
        super(MessageFormat.format("No atom with the URI {0} is known on this server.", unknownSocketURI));
        this.unknownSocketURI = unknownSocketURI;
    }
}

package won.protocol.exception;

import java.net.URI;
import java.text.MessageFormat;

/**
 * User: LEIH-NB Date: 20.02.14
 */
public class NoSuchSocketException extends WonProtocolException {
    private URI unknownSocketURI;

    public URI getUnknownAtomURI() {
        return unknownSocketURI;
    }

    public NoSuchSocketException(final URI unknownSocketURI) {
        super(MessageFormat.format("No socket with the URI {0} is known on this server.", unknownSocketURI));
        this.unknownSocketURI = unknownSocketURI;
    }
}

Fix exception message