Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Yaxel Perez
jio
Commits
ac79eed3
Commit
ac79eed3
authored
Jan 10, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint pass exceptions.js
parent
7478eb2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
51 deletions
+49
-51
src/jio/exceptions.js
src/jio/exceptions.js
+49
-51
No files found.
src/jio/exceptions.js
View file @
ac79eed3
var
jioException
=
function
(
spec
,
my
)
{
/*jslint indent:2, maxlen: 80, sloppy: true */
var
that
=
{};
var
jioException
=
function
(
spec
,
my
)
{
spec
=
spec
||
{};
var
that
=
{};
my
=
my
||
{};
spec
=
spec
||
{};
that
.
name
=
'
jioException
'
;
my
=
my
||
{};
that
.
message
=
spec
.
message
||
'
Unknown Reason.
'
;
that
.
name
=
'
jioException
'
;
that
.
toString
=
function
()
{
that
.
message
=
spec
.
message
||
'
Unknown Reason.
'
;
return
that
.
name
+
'
:
'
+
that
.
message
;
that
.
toString
=
function
()
{
};
return
that
.
name
+
'
:
'
+
that
.
message
;
return
that
;
};
return
that
;
};
};
var
invalidCommandState
=
function
(
spec
,
my
)
{
var
invalidCommandState
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
),
command
=
spec
.
command
;
spec
=
spec
||
{};
spec
=
spec
||
{};
var
command
=
spec
.
command
;
that
.
name
=
'
invalidCommandState
'
;
that
.
name
=
'
invalidCommandState
'
;
that
.
toString
=
function
()
{
that
.
toString
=
function
()
{
return
that
.
name
+
'
:
'
+
return
that
.
name
+
'
:
'
+
command
.
getLabel
()
+
'
,
'
+
that
.
message
;
command
.
getLabel
()
+
'
,
'
+
that
.
message
;
};
};
return
that
;
return
that
;
};
};
var
invalidStorage
=
function
(
spec
,
my
)
{
var
invalidStorage
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
),
type
=
spec
.
storage
.
getType
();
spec
=
spec
||
{};
spec
=
spec
||
{};
var
type
=
spec
.
storage
.
getType
();
that
.
name
=
'
invalidStorage
'
;
that
.
name
=
'
invalidStorage
'
;
that
.
toString
=
function
()
{
that
.
toString
=
function
()
{
return
that
.
name
+
'
:
'
+
return
that
.
name
+
'
:
'
+
'
Type "
'
+
type
+
'
",
'
+
that
.
message
;
'
Type "
'
+
type
+
'
",
'
+
that
.
message
;
};
};
return
that
;
return
that
;
};
};
var
invalidStorageType
=
function
(
spec
,
my
)
{
var
invalidStorageType
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
),
type
=
spec
.
type
;
var
type
=
spec
.
type
;
that
.
name
=
'
invalidStorageType
'
;
that
.
name
=
'
invalidStorageType
'
;
that
.
toString
=
function
()
{
that
.
toString
=
function
()
{
return
that
.
name
+
'
:
'
+
return
that
.
name
+
'
:
'
+
type
+
'
,
'
+
that
.
message
;
type
+
'
,
'
+
that
.
message
;
};
};
return
that
;
return
that
;
};
};
var
jobNotReadyException
=
function
(
spec
,
my
)
{
var
jobNotReadyException
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
);
that
.
name
=
'
jobNotReadyException
'
;
that
.
name
=
'
jobNotReadyException
'
;
return
that
;
return
that
;
};
};
var
tooMuchTriesJobException
=
function
(
spec
,
my
)
{
var
tooMuchTriesJobException
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
);
that
.
name
=
'
tooMuchTriesJobException
'
;
that
.
name
=
'
tooMuchTriesJobException
'
;
return
that
;
return
that
;
};
};
var
invalidJobException
=
function
(
spec
,
my
)
{
var
invalidJobException
=
function
(
spec
,
my
)
{
var
that
=
jioException
(
spec
,
my
);
var
that
=
jioException
(
spec
,
my
);
that
.
name
=
'
invalidJobException
'
;
that
.
name
=
'
invalidJobException
'
;
return
that
;
return
that
;
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment