peachpie icon indicating copy to clipboard operation
peachpie copied to clipboard

consolidate error messages

Open jakubmisek opened this issue 4 years ago • 0 comments

Consolidate throwing of error and warning messages such as invalid arguments, invalid arguments type, etc. Sometimes we throw an exception, sometimes we output a warning. Everything should be handled by PhpException object, and possibly extensible.

  • [ ] re-design PhpException class to handle common scenarios
  • [ ] review library functions and parameter handling - use PhpException helper class for everything
  • [ ] extensible PhpException
  • [ ] warning message should contain the name of the library function causing the problem

jakubmisek avatar Apr 18 '21 14:04 jakubmisek