| Package | com.rubenswieringa.book |
| Class | public class BookError |
| Inheritance | BookError Error |
See also
| Method | Defined by | ||
|---|---|---|---|
|
BookError(message:String = "", id:int = 0)
Creates a new BookError object.
| BookError | ||
| Constant | Defined by | ||
|---|---|---|---|
| CHILD_NOT_PAGE : String = "Non-Page instances not allowed as children." [static]
Error message indicating that a method expecting a Page instance parameter was passed a non-Page DisplayObject.
| BookError | ||
| NO_FLIPSIDE : String = "Page must have a flipside." [static]
Error message indicating the value of the message of a BookError when a pageflip is attempted on a Page that has no flipside.
| BookError | ||
| OUT_OF_BOUNDS : String = "Supplied index is below zero or greater than the amount of pages in PageManager (minus one)." [static]
Error message indicating that the index indicating the z-index of a Page is out of bounds.
| BookError | ||
| PAGE_NOT_CHILD : String = "Page does not exist in container." [static]
Error message indicating that a Page and a Book are not associated with eachother.
| BookError | ||
| BookError | () | constructor |
public function BookError(message:String = "", id:int = 0)Creates a new BookError object. If message is specified, its value is assigned to the object's message property.
Parametersmessage:String (default = "") — A string associated with the BookError object.
|
|
id:int (default = 0) — A reference number to associate with the specific error message.
|
| CHILD_NOT_PAGE | constant |
public static const CHILD_NOT_PAGE:String = "Non-Page instances not allowed as children."Error message indicating that a method expecting a Page instance parameter was passed a non-Page DisplayObject. Due to the lack of covariance in Actionscript overriding methods need to have the exact same signiature as the super-class' method. Methods like PageManager's addChild, however, need to prohibit non-Page instances from being added to the container, this is accomplish by throwing a BookError in the case of a non-Page instance being passed as a parameter.
| NO_FLIPSIDE | constant |
public static const NO_FLIPSIDE:String = "Page must have a flipside."Error message indicating the value of the message of a BookError when a pageflip is attempted on a Page that has no flipside. Note that when an inequal amount of children is added to the PageManager class before its (protected) childrenCreated method is called, the PageManager class will automatically add a last blank Page to make the amount of children equal.
| OUT_OF_BOUNDS | constant |
public static const OUT_OF_BOUNDS:String = "Supplied index is below zero or greater than the amount of pages in PageManager (minus one)."Error message indicating that the index indicating the z-index of a Page is out of bounds. For instance, providing PageManager's removeChildAt with an index parameter which is smaller than 0 or greater than (or equal to) the length of PageManager's pages property, will result in a BookError with its message set to OUT_OF_BOUNDS its value.
| PAGE_NOT_CHILD | constant |
public static const PAGE_NOT_CHILD:String = "Page does not exist in container."Error message indicating that a Page and a Book are not associated with eachother. For instance, in a situation where pageX is not a child of bookY, and bookY its removeChild method is called with pageX as a parameter, a ArgumentsError will be thrown with its message set to PAGE_NOT_CHILD its value. Note that this error message is typically applied to an ArgumentError.