Guest User

Untitled

a guest
Jun 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Foo
  2. def hi
  3. # your code here....
  4. rescue => e
  5. # Raise error here
  6. end
  7.  
  8. def hello
  9. # your code here...
  10. rescue => e
  11. # Raise error here
  12. end
  13. end
  14.  
  15. class FooAbstract {
  16. public function __call($name, $args) {
  17. # Try catch in here...
  18. }
  19. }
  20.  
  21. class Foo extends FooAbstract {
  22. public function hi() {
  23. # Code with try catch...
  24. }
  25. }
Add Comment
Please, Sign In to add comment