UNPKG

@secjs/utils

Version:

Utils functions and classes for Node.js

25 lines (21 loc) 601 B
/** * @secjs/utils * * (c) João Lenon <lenonSec7@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Exception } from '#src/Helpers/Exception' export class InvalidUuidException extends Exception { /** * Creates a new instance of InvalidUuidException. * * @param {string} value * @return {InvalidUuidException} */ constructor(value) { const content = `The value ${value} is not a valid uuid.` super(content, 500, 'E_INVALID_UUID', 'Use a valid uuid instead.') } }