C# Class WaveBox.ApiHandler.Handlers.ErrorApiHandler

Inheritance: IApiHandler
Datei anzeigen Open project: einsteinx2/WaveBox

Public Methods

Method Description
CheckPermission ( User user, string action ) : bool
Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void

Overload for IApiHandler interface

Process ( UriWrapper uri, IHttpProcessor processor, User user, string error ) : void

Process logs the error, creates a JSON response, and send it back to the user on bad API call

Method Details

CheckPermission() public method

public CheckPermission ( User user, string action ) : bool
user WaveBox.Core.Model.User
action string
return bool

Process() public method

Overload for IApiHandler interface
public Process ( UriWrapper uri, IHttpProcessor processor, User user ) : void
uri UriWrapper
processor IHttpProcessor
user WaveBox.Core.Model.User
return void

Process() public method

Process logs the error, creates a JSON response, and send it back to the user on bad API call
public Process ( UriWrapper uri, IHttpProcessor processor, User user, string error ) : void
uri UriWrapper
processor IHttpProcessor
user WaveBox.Core.Model.User
error string
return void