note 120904 added to class.badfunctioncallexception

From: Date: Thu, 30 Mar 2017 12:31:23 +0000
Subject: note 120904 added to class.badfunctioncallexception
Groups: php.notes 
Request: Send a blank email to php-notes+get-208962@lists.php.net to get a copy of this message
You can also throw BadMethodCallException within a method when certain pre-conditions to safely call that method are not met. For example when a method <?php $foo->analyzeData(); ?> has been called but no data as previously been loaded (from file "import" for database, wherever from). ---- Server IP: 213.172.110.13 Probable Submitter: 212.93.31.219 ---- Manual Page -- http://php.net/manual/en/class.badfunctioncallexception.php Edit -- https://master.php.net/note/edit/120904 Del: integrated -- https://master.php.net/note/delete/120904/integrated Del: useless -- https://master.php.net/note/delete/120904/useless Del: bad code -- https://master.php.net/note/delete/120904/bad+code Del: spam -- https://master.php.net/note/delete/120904/spam Del: non-english -- https://master.php.net/note/delete/120904/non-english Del: in docs -- https://master.php.net/note/delete/120904/in+docs Del: other reasons-- https://master.php.net/note/delete/120904 Reject -- https://master.php.net/note/reject/120904 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208962) next »