Packageaway3dlite.core.utils
Classpublic class Debug

Class for emmiting debuging messages, warnings and errors.

Public Properties
 PropertyDefined by
  active : Boolean = false
[static] Determines whether debug mode is active.
Debug
  warningsAsErrors : Boolean = false
[static] Determines whether warning messages are treated as errors.
Debug
Public Methods
 MethodDefined by
  
error(message:Object):void
[static] Traces an error message to the output window and throws a runtime error.
Debug
  
trace(... agrs):void
[static] Traces a message to the output window.
Debug
  
warning(message:Object):void
[static] Traces a warning message to the output window.
Debug
Property detail
activeproperty
public static var active:Boolean = false

Determines whether debug mode is active. Defaults to false.

warningsAsErrorsproperty 
public static var warningsAsErrors:Boolean = false

Determines whether warning messages are treated as errors. Defaults to false.

Method detail
error()method
public static function error(message:Object):void

Traces an error message to the output window and throws a runtime error.

Parameters
message:Object — The error message to trace.
trace()method 
public static function trace(... agrs):void

Traces a message to the output window.

Parameters
... agrs — The message to trace.
warning()method 
public static function warning(message:Object):void

Traces a warning message to the output window. If the warningsAsErrors property is set to true, a runtime error is thrown.

Parameters
message:Object — The warning message to trace.

See also

Wiki link
Click to go to the wiki page for 'away3dlite.core.utils.Debug'

Code examples

Comments