2017 © Pedro Peláez
 

library apperrormanager

To caputure the Api Errors/Exceptions in Apigility or REST API.

image

tarun-singhal/apperrormanager

To caputure the Api Errors/Exceptions in Apigility or REST API.

  • Wednesday, December 30, 2015
  • by tarun-singhal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AppErrorManager

AppErrorManager is used to capture the API error and exception on fly. It is very usefull to manage the single place to capture the error message and error code., (*1)

  • Steps to Enable and usage of AppErrorMAnager Module

Step 1 :To enable the Module in ZF2, Include the module name inside application.config.php file, (*2)

return array(
  ...,
  ...,
  'ErrorManager'
);

Step 2: now if you want to capture the api exception then change in ApiProblem i.e. new ApiProblem(200, '1001'); where, '1001' : is the error code,, (*3)

Step 3: Open the config/Error.ini file, please the error code inside that like as below:, (*4)

[test.rest.respapiname]
1001 = api problem found

Step 4: Now you can manage the api code and message at one place., (*5)

I hope it will help you to handle exception/error and to identify the actual debug happening in the API Calls., (*6)

The Versions

30/12 2015

dev-master

9999999-dev https://github.com/tarun-singhal/AppErrorManager

To caputure the Api Errors/Exceptions in Apigility or REST API.

  Sources   Download

The Requires

  • php >=5.3

 

by Tarun Singhal

api zf2 exception apigility error manager