Skip to content

Commit

Permalink
Merge pull request #161 from KleeGroup/focus-exception
Browse files Browse the repository at this point in the history
[exception] Add focus exception.
  • Loading branch information
Bernardstanislas committed Jul 30, 2015
2 parents 2937b34 + 00b0cd4 commit 514d65c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions exception/FocusException.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let CustomException = require('./CustomException');
/**
* Class standing for the FocusException exceptions.
*/
class FocusException extends CustomException {
/**
* Exception constructor..
* @param messgae {string} - Exception message.
* @param options {object} - Object to add to the exception.
*/
constructor(message, options) {
super("FocusException", message, options);
}
}

module.exports = FocusException;
4 changes: 4 additions & 0 deletions exception/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Exceptions

In focus, there is different types of Exceptions:
- ArgumentInvalid
- FocusException
1 change: 1 addition & 0 deletions exception/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module.exports = {
ArgumentNullException: require('./ArgumentNullException'),
CustomException: require('./CustomException'),
DependencyException: require('./DependencyException'),
FocusException: require('./FocusException'),
NotImplementedException: require('./NotImplementedException')
};

0 comments on commit 514d65c

Please sign in to comment.