All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.crossbar.autobahn.wamp.reflectionRoles.WampException Maven / Gradle / Ivy

The newest version!
package io.crossbar.autobahn.wamp.reflectionRoles;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class WampException extends Exception {
    private final String mErrorUri;
    private final Map mDetails;
    private final List mArguments;
    private final Map mKwArguments;

    public WampException(String errorUri, Object... arguments) {
        this.mErrorUri = errorUri;
        this.mDetails = null;
        this.mArguments = Arrays.asList(arguments);
        this.mKwArguments = null;
    }

    public WampException(String errorUri, Map details, List arguments, Map kwArguments) {
        this.mErrorUri = errorUri;
        this.mDetails = details;
        this.mArguments = arguments;
        this.mKwArguments = kwArguments;
    }

    public String getErrorUri() {
        return mErrorUri;
    }

    public Map getDetails() {
        return mDetails;
    }

    public List getArguments() {
        return mArguments;
    }

    public Map getKwArguments() {
        return mKwArguments;
    }
}