role X::OS

Error reported by the operating system
role X::OS { has $.os-error }

Common role for all exceptions that are triggered by some error reported by the operating system (failed IO, system calls, fork, memory allocation).

Methods

method os-error

method os-error(--> Str:D)

Returns the error as reported by the operating system.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.