Checking in changes prior to tagging of version 2.66.
[MogileFS-Server.git] / lib / MogileFS / Exception.pm
blob3e8005fd2644f5c3fd464a8e9039ad45d0263081
1 package MogileFS::Exception;
2 use strict;
3 use warnings;
5 sub new {
6 my ($class, $errcode) = @_;
7 return bless {
8 code => $errcode,
9 }, $class;
12 sub throw {
13 my $self = shift;
14 die $self;
17 sub code { $_[0]{code} }