Dimensi TutupBotol
Saturday, October 22, 2016
Create Custom Exception in PHP
For creating a new custom exception, we just need to extend the Exception class, as shown below :
To hit this exception, we just need to throw a new exception like this :
Then... The last part :
Result :
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment