diff options
Diffstat (limited to 'pkg/lang/vm/errors.go')
| -rw-r--r-- | pkg/lang/vm/errors.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/lang/vm/errors.go b/pkg/lang/vm/errors.go index 4781179..fb37726 100644 --- a/pkg/lang/vm/errors.go +++ b/pkg/lang/vm/errors.go @@ -62,6 +62,14 @@ func (e ErrCorruptedMemCell) Error() string { return fmt.Sprintf("corrupted memory cell at %s", e.Ptr.String()) } +type ErrCantReanchorType struct { + Type value.TypeKind +} + +func (e ErrCantReanchorType) Error() string { + return fmt.Sprintf("can't reanchor type of value which already is of type %v", e.Type) +} + // Non-fatal errors, which will later be implemented as catchable exceptions type ErrInvalidOperandType struct { |
