open-vault/ui/app/lib/control-group-error.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

17 lines
478 B
JavaScript

import EmberError from '@ember/error';
export default class ControlGroupError extends EmberError {
constructor(wrapInfo) {
let { accessor, creation_path, creation_time, token, ttl } = wrapInfo;
super();
this.message = 'Control Group encountered';
// add items from the wrapInfo object to the error
this.token = token;
this.accessor = accessor;
this.creation_path = creation_path;
this.creation_time = creation_time;
this.ttl = ttl;
}
}