repo.or.cz
/
MogileFS-Server.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Checking in changes prior to tagging of version 2.66.
[MogileFS-Server.git]
/
lib
/
MogileFS
/
Exception.pm
blob
3e8005fd2644f5c3fd464a8e9039ad45d0263081
1
package
MogileFS
::
Exception
;
2
use
strict
;
3
use
warnings
;
4
5
sub
new
{
6
my
(
$class
,
$errcode
) =
@_
;
7
return
bless
{
8
code
=>
$errcode
,
9
},
$class
;
10
}
11
12
sub
throw
{
13
my
$self
=
shift
;
14
die
$self
;
15
}
16
17
sub
code
{
$_
[
0
]{
code
} }
18
19
1
;