FCF 2.0 development in progress...
> > > > > >
[News] [Packages API] [Downloads] [Donate to the project] [Contacts]

constructor() method from fcf.Exception class

constructor(string a_exceptionName, object a_args = {}, Error a_subException = undefined)
constructor(Error a_baseException, object a_args = {}, Error a_subException = undefined)
constructor(object a_baseExceptionData, object a_args = {}, Error a_subException = undefined)

Package: fcf-framework-core

File: fcf-framework-core:fcf.js

Available from version: 2.0.2

Class constructor


string a_exceptionName
- Event name

Error a_baseException
- If an argument is passed, the object's error name is set to "ERROR", and the error property is set to the argument passed.

object a_baseExceptionData
- An object containing the fields of the fcf.Exception object, but which may not be derived from this class, the fields of the passed argument fall into the new object, can be used when passing error data using serialization.

object a_args = {}
- An object containing additional fields added to the created object that will be used when tokenizing the message string

Error|fcf.Exception a_subException = undefined
- The base error object that caused the current error to be generated. If the argument is given, then an exception field with a value equal to a_subException is added to the created object. And when an error message is displayed, there will be the possibility of outputting child errors.