errors.js 239 B

1234567891011121314
  1. // Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
  2. module.exports = {
  3. newInvalidAsn1Error: function(msg) {
  4. var e = new Error();
  5. e.name = 'InvalidAsn1Error';
  6. e.message = msg || '';
  7. return e;
  8. }
  9. };