Package | com.threerings.util |
Class | public class Assert |
Assert.isNotNull(mystack.top()); Assert.isTrue(mystack.length == 1, "Unexpected number of items on stack!");Deprecation notes: What we really want is a way to turn off assertions at compile time. We don't want folks who happen to be running a debug player to have their player exit. And why wouldn't you always want an exception if something's going to go wrong?
Property | Defined by | ||
---|---|---|---|
dumpStack : Boolean = true [static] Controls whether stack dumps should be included in the error log (default value is true).
| Assert |
Method | Defined by | ||
---|---|---|---|
fail(message:String):void
[static] Displays an error message, with an optional stack trace.
| Assert | ||
isFalse(value:Boolean, message:String = null):void
[static] Asserts that the value is false.
| Assert | ||
isNotNull(value:Object, message:String = null):void
[static] Asserts that the value is not equal to null.
| Assert | ||
isNull(value:Object, message:String = null):void
[static] Asserts that the value is equal to null.
| Assert | ||
isTrue(value:Boolean, message:String = null):void
[static] Asserts that the value is true.
| Assert |
_debug | property |
protected static var _debug:Boolean
dumpStack | property |
public static var dumpStack:Boolean = true
Controls whether stack dumps should be included in the error log (default value is true).
_log | property |
protected static var _log:Log
fail | () | method |
public static function fail(message:String):void
Displays an error message, with an optional stack trace.
Parametersmessage:String |
isFalse | () | method |
public static function isFalse(value:Boolean, message:String = null):void
Asserts that the value is false.
Parametersvalue:Boolean |
|
message:String (default = null )
|
isNotNull | () | method |
public static function isNotNull(value:Object, message:String = null):void
Asserts that the value is not equal to null.
Parametersvalue:Object |
|
message:String (default = null )
|
isNull | () | method |
public static function isNull(value:Object, message:String = null):void
Asserts that the value is equal to null.
Parametersvalue:Object |
|
message:String (default = null )
|
isTrue | () | method |
public static function isTrue(value:Boolean, message:String = null):void
Asserts that the value is true.
Parametersvalue:Boolean |
|
message:String (default = null )
|