vault/ui/app/lib/control-group-error.js
Vault Automation 0c6c13dd38
license: update headers to IBM Corp. (#10229) (#10233)
* license: update headers to IBM Corp.
* `make proto`
* update offset because source file changed

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2025-10-21 15:20:20 -06:00

22 lines
577 B
JavaScript

/**
* Copyright IBM Corp. 2016, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import AdapterError from '@ember-data/adapter/error';
export default class ControlGroupError extends AdapterError {
constructor(wrapInfo) {
const { 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;
}
}