Help for this page

Select Code to Download


  1. or download this
    sub slick()
    {
    ...
    {
        log-error( ~$result );
    }
    
  2. or download this
    sub slick()
    {
    ...
    -> $error {
      log-error $error.exception.message
    }
    
  3. or download this
    proto sub log-error ( $ ) {*}
    multi sub log-error ( Str $message ) {
    ...
    multi sub log-error ( Failure $failure ) {
      samewith $failure.exception.message
    }
    
  4. or download this
    # this has the same effect as `but False`
    'Some error message' but role { method Bool ( --> False ) {} }