com.github.signalr4j.client.hubs.HubException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalr4j Show documentation
Show all versions of signalr4j Show documentation
A java client library for accessing SignalR WebSocket endpoints.
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/
package com.github.signalr4j.client.hubs;
/**
* Represents a Hub Exception
*/
public class HubException extends Exception {
private static final long serialVersionUID = 5958638666959902780L;
private Object mErrorData;
/**
* Creates a new Hub exception
*
* @param error
* The error message
* @param errorData
* The error data
*/
public HubException(String error, Object errorData) {
super(error);
mErrorData = errorData;
}
/**
* Returns the error data
*/
public Object getErrorData() {
return mErrorData;
}
}