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

=TITLE class X::IO::Chdir

=SUBTITLE Error while trying to change the working directory

=for code :skip-test<compile time error>
class X::IO::Chdir does X::IO is Exception { }

Error class when a L<chdir|/routine/chdir> call failed.

For example

=for code
chdir '/home/other'

throws

=for code :lang<text>
Failed to change the working directory to '/home/other': permission denied

=head1 Methods

=head2 method path

Returns the path that was passed to the failed C<chdir> call.

=end pod
