docs: function (opts) {
          this.isAppError = true;
          this.code = opts.code;
          this.message = this.msg = opts.msg;
          this.type = opts.type;
          this.err = opts.err;
          this.stack = (new Error(opts.msg)).stack;
      }