remove base type, keep primitive type and make hints as unknown optional
This commit is contained in:
@@ -35,12 +35,12 @@ export class CashAssemblyVariableTypeMismatchError extends Error {
|
||||
}
|
||||
|
||||
/**
|
||||
* Error thrown when a supported primitive hint does not expose the requested method.
|
||||
* Error thrown when a method resolvable primitive type does not expose the requested method.
|
||||
*/
|
||||
export class CashAssemblyPrimitiveMethodMissingError extends Error {
|
||||
constructor(identifier: string, methodName: string, hint: string) {
|
||||
constructor(identifier: string, methodName: string, type: string) {
|
||||
const defaultMessage = 'CashAssembly primitive method does not exist';
|
||||
super(`${defaultMessage}: identifier "${identifier}", methodName "${methodName}", hint "${hint}"`);
|
||||
super(`${defaultMessage}: identifier "${identifier}", methodName "${methodName}", type "${type}"`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ export class CashAssemblyNumberNotSafeIntegerError extends Error {
|
||||
}
|
||||
|
||||
/**
|
||||
* Error thrown when a supported primitive is selected but its value is missing when provided in the variables map.
|
||||
* Error thrown when a method resolvable primitive is selected but its value is missing from the variables map.
|
||||
*/
|
||||
export class CashAssemblyPrimitiveVariableMissingError extends Error {
|
||||
constructor(identifier: string, variableName: string) {
|
||||
|
||||
Reference in New Issue
Block a user