diff --git a/exception/FocusException.js b/exception/FocusException.js new file mode 100644 index 0000000..ba74de3 --- /dev/null +++ b/exception/FocusException.js @@ -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; diff --git a/exception/README.md b/exception/README.md index d555547..da71cca 100644 --- a/exception/README.md +++ b/exception/README.md @@ -1 +1,5 @@ Exceptions + +In focus, there is different types of Exceptions: +- ArgumentInvalid +- FocusException diff --git a/exception/index.js b/exception/index.js index d9a94cd..7f979db 100644 --- a/exception/index.js +++ b/exception/index.js @@ -3,5 +3,6 @@ module.exports = { ArgumentNullException: require('./ArgumentNullException'), CustomException: require('./CustomException'), DependencyException: require('./DependencyException'), + FocusException: require('./FocusException'), NotImplementedException: require('./NotImplementedException') };