UNPKG

@freemework/common

Version:

Common library of the Freemework Project.

22 lines 710 B
import { FException } from "./f_exception.js"; export class FExceptionArgument extends FException { constructor(message, paramName, innerException) { if (paramName !== undefined) { if (message !== undefined) { super(`Wrong argument '${paramName}'. ${message}`, innerException); } else { super(`Wrong argument '${paramName}'`); } } else { if (message !== undefined) { super(`Wrong argument. ${message}`, innerException); } else { super("Wrong argument"); } } } } //# sourceMappingURL=f_exception_argument.js.map