Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3064

Default handler for undeclared exceptions in PHP processor

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.9.3
    • Fix Version/s: None
    • Component/s: PHP - Compiler
    • Labels:
      None
    • Environment:

      Binary and json protocols in PHP server app

      Description

      PHP app crashes on every undeclared exception.

      But it isn't necessary declare all internal exceptions (like RedisException, DoctrineException, etc.) in .thrift file. They should be catched and serialized by Thrift into TApplicationException (aka INTERNAL_ERROR).

      It will be more informative than plane 500 HTTP code.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              regeda Anthony Regeda
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: