errors.js 239 B

12345678910111213
  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. };