Error
Generating general application errors and categorizing the severity of the error with the types:
- trace
- debug
- info
- warn
- error
- fatal
create
_error.create(message: string) : ErrorException
Description
Creates an error with an description message
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( ErrorException )
createError
_error.createError(message: string) : java.lang.Error
Description
Creates an error with an description message
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( java.lang.Error )
createException
_error.createException(message: string) : java.lang.Exception
Description
Creates a exception with an description message
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( java.lang.Exception )
createThrowable
_error.createThrowable(message: string) : java.lang.Throwable
Description
Creates a throwable with an description message
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( java.lang.Throwable )
data
_error.data() : Values
Description
Creates a new class Values that results from the error.
Return
( Values )
_error.data(retorno: Values) : Error
Description
Creates a new class Values that results from the error.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
retorno | Values | Values. |
Return
( Error )
debug
_error.debug(message: string) : void
Description
Return an exception and print a message with the description of the exception and it's object
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
Return
( void )
_error.debug(message: string, throwable: java.lang.Object) : void
Description
Print a message with the description of the debug and it's cause
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Object | Alternative throwable to include in the debug message. |
Return
( void )
_error.debug(message: string, cause: java.lang.Throwable) : void
Description
Print a message with the description of the debug
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
cause | java.lang.Throwable | Alternative throwable to include in the debug message. |
Return
( void )
error
_error.error(message: string) : void
Description
Print a message of error.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( void )
_error.error(message: string, throwable: java.lang.Object) : void
Description
Print a message with the description of the error and it's cause
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Object | Alternative throwable to include in the error message. |
Return
( void )
_error.error(message: string, throwable: java.lang.Throwable) : void
Description
Print a message with the description of the error and it's object
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Throwable | Alternative throwable to include in the error message. |
Return
( void )
fatal
_error.fatal(message: string) : void
Description
Print a message of type FATAL in the log file and in the terminal of Netuno.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
Return
( void )
_error.fatal(message: string, throwable: java.lang.Object) : void
Description
Print a message of type FATAL in the log file and in the terminal of Netuno.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Object | Alternative object to include in the log message. |
Return
( void )
_error.fatal(message: string, throwable: java.lang.Throwable) : void
Description
Print a message of type FATAL in the log file and in the terminal of Netuno.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Throwable | Alternative throwable to include in the log message. |
Return
( void )
info
_error.info(message: string) : void
Description
Print a message with the description of the debug and it's object
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
Return
( void )
_error.info(message: string, throwable: java.lang.Object) : void
Description
Print a message of information and a throable
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Object | Alternative throwable to include in the information message. |
Return
( void )
_error.info(message: string, cause: java.lang.Throwable) : void
Description
Print a message of information
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
cause | java.lang.Throwable | Alternative throwable to include in the info message. |
Return
( void )
is
_error.is(object: java.lang.Object) : boolean
Description
Checks if an object is from type Error, Exception or Throwable.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
object | java.lang.Object | Object that will be checked. |
Return
( boolean )
Returns true if the object is of type Error, Exception or Throwable.
isError
_error.isError(object: java.lang.Object) : boolean
Description
Checks if an object is from type Error.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
object | java.lang.Object | Object that will be checked. |
Return
( boolean )
Returns true if the object is of type Error.
isException
_error.isException(object: java.lang.Object) : boolean
Description
Checks if an object is from type Exception.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
object | java.lang.Object | Object that will be checked. |
Return
( boolean )
Returns true if the object is of type Exception.
isThrowable
_error.isThrowable(object: java.lang.Object) : boolean
Description
Checks if an object is from type Throwable.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
object | java.lang.Object | Object that will be checked. |
Return
( boolean )
Returns true if the object is of type Throwable.
raise
_error.raise(object: java.lang.Object) : void
Description
Throws an error according to the type of object passed (Error, Exception or Throwable).
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
object | java.lang.Object | Error object. |
Return
( void )
trace
_error.trace(message: string) : void
Description
Returns an exception and a list of methods that caused them with an description mensagem.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( void )
_error.trace(message: string, object: java.lang.Object) : void
Description
Returns an object and a list of methods that caused them with an description mensagem.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
object | java.lang.Object | Alternative object to include in the error message. |
Return
( void )
_error.trace(message: string, throwable: java.lang.Throwable) : void
Description
Returns an throwable and a list of methods that caused them with an description mensagem.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Throwable | Alternative throwable to include in the log message. |
Return
( void )
warn
_error.warn(message: string) : void
Description
Print a message of warning
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in the log. |
Return
( void )
_error.warn(message: string, object: java.lang.Object) : void
Description
Print a message with the description of the warning and it's object
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
object | java.lang.Object | Alternative object to include in the warning message. |
Return
( void )
_error.warn(message: string, throwable: java.lang.Throwable) : void
Description
Print a message with the description of the warning and it's throwable
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
message | string | Message that will be presented in log. |
throwable | java.lang.Throwable | Alternative throwable to include in the warning message. |
Return
( void )