throw
ErrorsCollection

throw

Synthesised documentation from type/Exception

From type/Exception

See Original text in context

method throw(Exception:D:)

Throws the exception.

my $exception = X::AdHoc.new;    # Totally fine 
try $exception.throw;            # Throws 
if ($!{ #`( some handling ) }# Suppress the exception