Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
var Thrift = require('thrift').Thrift;
var ttypes = module.exports = {};
var NotAuthorizedException = module.exports.NotAuthorizedException = function(args) {
Thrift.TException.call(this, "NotAuthorizedException")
this.name = "NotAuthorizedException"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(NotAuthorizedException, Thrift.TException);
NotAuthorizedException.prototype.name = 'NotAuthorizedException';
NotAuthorizedException.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
output.writeFieldStop();
output.writeStructEnd();
return;
};
var FlowServiceException = module.exports.FlowServiceException = function(args) {
Thrift.TException.call(this, "FlowServiceException")
this.name = "FlowServiceException"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(FlowServiceException, Thrift.TException);
FlowServiceException.prototype.name = 'FlowServiceException';
FlowServiceException.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
var NotFoundException = module.exports.NotFoundException = function(args) {
Thrift.TException.call(this, "NotFoundException")
this.name = "NotFoundException"
};
Thrift.inherits(NotFoundException, Thrift.TException);
output.writeFieldStop();
output.writeStructEnd();
return;
};
var MetricsServiceException = module.exports.MetricsServiceException = function(args) {
Thrift.TException.call(this, "MetricsServiceException")
this.name = "MetricsServiceException"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(MetricsServiceException, Thrift.TException);
MetricsServiceException.prototype.name = 'MetricsServiceException';
MetricsServiceException.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
NotFoundException = module.exports.NotFoundException = function(args) {
Thrift.TException.call(this, "NotFoundException")
this.name = "NotFoundException"
};
Thrift.inherits(NotFoundException, Thrift.TException);
TIllegalArgument = module.exports.TIllegalArgument = function(args) {
Thrift.TException.call(this, "TIllegalArgument")
this.name = "TIllegalArgument"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(TIllegalArgument, Thrift.TException);
AuthenticationException = module.exports.AuthenticationException = function(args) {
Thrift.TException.call(this, "AuthenticationException")
this.name = "AuthenticationException"
this.why = null;
if (args) {
if (args.why !== undefined) {
this.why = args.why;
}
}
};
Thrift.inherits(AuthenticationException, Thrift.TException);
output.writeFieldStop();
output.writeStructEnd();
return;
};
MetadataServiceException = module.exports.MetadataServiceException = function(args) {
Thrift.TException.call(this, "MetadataServiceException")
this.name = "MetadataServiceException"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(MetadataServiceException, Thrift.TException);
MetadataServiceException.prototype.name = 'MetadataServiceException';
MetadataServiceException.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
output.writeFieldStop();
output.writeStructEnd();
return;
};
var MetricsServiceException = module.exports.MetricsServiceException = function(args) {
Thrift.TException.call(this, "MetricsServiceException")
this.name = "MetricsServiceException"
this.message = null;
if (args) {
if (args.message !== undefined) {
this.message = args.message;
}
}
};
Thrift.inherits(MetricsServiceException, Thrift.TException);
MetricsServiceException.prototype.name = 'MetricsServiceException';
MetricsServiceException.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
var AuthorizationException = module.exports.AuthorizationException = function(args) {
Thrift.TException.call(this, "AuthorizationException")
this.name = "AuthorizationException"
this.why = null;
if (args) {
if (args.why !== undefined) {
this.why = args.why;
}
}
};
Thrift.inherits(AuthorizationException, Thrift.TException);