=begin pod :kind("Type") :subkind("role") :category("exception")

=TITLE role X::OS

=SUBTITLE 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).

=head1 Methods

=head2 method os-error

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

Returns the error as reported by the operating system.

=end pod
