ErrorHandler.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/web/server/handler/ErrorHandler.hpp"

ErrorHandler

Error Handler.

namespace oatpp { namespace web { namespace server { namespace handler { 
  class ErrorHandler {}
}}}}

Methods

Return Type Name Summary
std::shared_ptr<protocol::http::outgoing::Response> handleError Implement this method!

ErrorHandler::handleError

Implement this method!

virtual
std::shared_ptr<protocol::http::outgoing::Response>
handleError(const protocol::http::Status& status, const oatpp::String& message) = 0

DefaultErrorHandler

Default Error Handler.

namespace oatpp { namespace web { namespace server { namespace handler { 
  class DefaultErrorHandler : public oatpp::base::Countable, public ErrorHandler {}
}}}}

Methods

Return Type Name Summary
[none] DefaultErrorHandler Constructor.
std::shared_ptr<DefaultErrorHandler> createShared Create shared DefaultErrorHandler.
std::shared_ptr<protocol::http::outgoing::Response> handleError Implementation of ErrorHandler::handleError()

DefaultErrorHandler::DefaultErrorHandler

Constructor.

DefaultErrorHandler()

DefaultErrorHandler::createShared

Create shared DefaultErrorHandler.

  • @return - std::shared_ptr to DefaultErrorHandler.

static std::shared_ptr<DefaultErrorHandler> createShared()

DefaultErrorHandler::handleError

Implementation of ErrorHandler::handleError()

std::shared_ptr<protocol::http::outgoing::Response>
handleError(const protocol::http::Status& status, const oatpp::String& message) override