mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 14:41:21 +00:00
GUACAMOLE-44: Add GuacamoleStreamException for reporting errors from intercepted streams.
This commit is contained in:
@@ -42,6 +42,14 @@ angular.module('rest').factory('Error', [function defineError() {
|
||||
*/
|
||||
this.message = template.message;
|
||||
|
||||
/**
|
||||
* The Guacamole protocol status code associated with the error that
|
||||
* occurred. This is only valid for errors of type STREAM_ERROR.
|
||||
*
|
||||
* @type Number
|
||||
*/
|
||||
this.statusCode = template.statusCode;
|
||||
|
||||
/**
|
||||
* The type string defining which values this parameter may contain,
|
||||
* as well as what properties are applicable. Valid types are listed
|
||||
@@ -110,7 +118,16 @@ angular.module('rest').factory('Error', [function defineError() {
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
PERMISSION_DENIED : 'PERMISSION_DENIED'
|
||||
PERMISSION_DENIED : 'PERMISSION_DENIED',
|
||||
|
||||
/**
|
||||
* An error occurred within an intercepted stream, terminating that
|
||||
* stream. The Guacamole protocol status code of that error will be
|
||||
* stored within statusCode.
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
STREAM_ERROR : 'STREAM_ERROR'
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user