How to use the thrift.Thrift.TException function in thrift

To help you get started, we’ve selected a few thrift examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cdapio / cdap / server / thrift_bindings / flowservices_types.js View on Github external
//
// 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) {
github cdapio / cdap / server / thrift_bindings / flowservices_types.js View on Github external
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) {
github racker / node-rproxy / node_modules / cassandra-client / lib / gen-nodejs / cassandra_types.js View on Github external
var NotFoundException = module.exports.NotFoundException = function(args) {
  Thrift.TException.call(this, "NotFoundException")
  this.name = "NotFoundException"
};
Thrift.inherits(NotFoundException, Thrift.TException);
github cdapio / cdap / server / thrift_bindings / metricsservice_types.js View on Github external
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) {
github racker / node-cassandra-client / lib / gen-nodejs / cassandra_types.js View on Github external
NotFoundException = module.exports.NotFoundException = function(args) {
  Thrift.TException.call(this, "NotFoundException")
  this.name = "NotFoundException"
};
Thrift.inherits(NotFoundException, Thrift.TException);
github ripple / rippled-historical-database / lib / hbase / hbase_types.js View on Github external
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);
github racker / node-cassandra-client / lib / gen-nodejs / cassandra_types.js View on Github external
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);
github cdapio / cdap / web-cloud-app / server / common / thrift_bindings / metadataservice_types.js View on Github external
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) {
github cdapio / cdap / server / common / thrift_bindings / metricsservice_types.js View on Github external
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) {
github racker / node-rproxy / node_modules / cassandra-client / lib / gen-nodejs / cassandra_types.js View on Github external
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);