### ----------------------------------------------------
### -- Hematite
### -- Licenses: Artistic-2.0
### -- Authors: André Brás
### -- File: lib/X/Hematite/HaltException.rakumod
### ----------------------------------------------------
use X::Hematite::DetachException;

unit class X::Hematite::HaltException is X::Hematite::DetachException;

has %.attributes = ();

submethod BUILD(*%args) {
    %!attributes = %args;
    return self;
}

method FALLBACK(Str $name) {
    return %.attributes{$name};
}

method message() returns Str {
    return 'halt exception';
}


