File

src/lib/myScript/output/generic/errorResponseWSMessage.ts

Description

WebSocket recognition error message

Extends

AbstractWSMessage

Constructor

constructor(obj: any)

Methods

getError
getError()

Get the error

Returns: string

Properties

error
error: string
import { AbstractWSMessage } from '../../common/abstractWSMessage';

/**
 * WebSocket recognition error message
 * 
 * @export
 * @class ErrorResponseWSMessage
 * @extends {AbstractWSMessage}
 */
export class ErrorResponseWSMessage extends AbstractWSMessage {
	error: string;

	constructor(obj?) {
		super(obj);
		this.error = obj && obj.error || undefined;
	}

	/**
	 * Get the error
	 *
	 * @method getError
	 * @returns {String}
	 */
	getError(): string {
		return this.error;
	};
}

results matching ""

    No results matching ""