# ri > Net::SSH::ChannelRequestFailed

## [Net::SSH::ChannelRequestFailed](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AChannelRequestFailed/markdown) < [Net::SSH::Exception](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AException/markdown)

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
This exception is primarily used internally, but if you have a channel
request handler (see [Net::SSH::Connection::Channel](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH%3A%3AConnection%3A%3AChannel/markdown)#on_request) that you
want to fail in such a way that the server knows it failed, you can
raise this exception in the handler and [Net::SSH](https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ASSH/markdown) will translate that
into a "channel failure" message.
------------------------------------------------------------------------
