class InvalidMethodCallOrderException extends LogicException

Use this Exception if a method is present but not used as intended (e.g. wrong order or context)

Examples: $staticModelCollection = new ModelCollection($model,[$model1,$model2]); $staticModelCollection->add_scope_condition() -> Exception: Scope cannot be applied to static model collection

$myXUI = new myXUI(); $myXUI->render(); -> Exception: Please call set_mod() before calling render()