2018-09-25 16:28:26 +00:00
|
|
|
import EmberError from '@ember/error';
|
2018-07-19 01:59:04 +00:00
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
export default class ControlGroupError extends EmberError {
|
2018-07-19 01:59:04 +00:00
|
|
|
constructor(wrapInfo) {
|
2018-09-25 16:28:26 +00:00
|
|
|
let { accessor, creation_path, creation_time, token, ttl } = wrapInfo;
|
2018-07-19 01:59:04 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|