Skip to content

Oolong

Compare
Choose a tag to compare
@georgique georgique released this 17 Feb 11:18
· 13 commits to master since this release

This release contains:

  • Serializer . Idea is based on Yii2 native REST serializer, but it's adapted for the Json RPC protocol.
  • Improved error handling. Now JsonRpcError has data property, which goes error.data property in response. Besides that, error.data will contains the following:
    • exception - original exception
    • human_message - message which you can show on the client-end directly to user. By default comes from the PREVIOUS exception message, so if you throw any exception in an action, it's message will go here.
    • error_code - original error code. Same approach as with human_message, goes from PREVIOUS exception, gives ability to react on errors better on a client side.