Packageaway3dlite.core.utils
Classpublic class Debug
InheritanceDebug Inheritance Object

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(message:Object):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(message:Object):void

Traces a message to the output window.

Parameters

message:Object — 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