| 1 | package Linux::Perl::X::Call; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use parent 'Linux::Perl::X::Base'; | ||
| 7 | |||
| 8 | sub _new { | ||
| 9 | my ($class, $num, $error) = @_; | ||
| 10 | |||
| 11 | return $class->SUPER::_new( | ||
| 12 | "System call $num failed: $error", | ||
| 13 | call_number => $num, | ||
| 14 | error => $error, | ||
| 15 | ); | ||
| 16 | } | ||
| 17 | |||
| 18 | 1; |