bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
gateway::GatewayError Class Reference

exception static functions to read error information from remote response More...

#include <GatewayError.h>

Collaboration diagram for gateway::GatewayError:
Collaboration graph

Static Public Member Functions

static void read_error (const std::string &filename, std::string &err, const std::string &url)
 read the target response file that contains textual error information
 

Detailed Description

exception static functions to read error information from remote response

Two static methods are provided that can read the target response file if an error occurred.

Definition at line 43 of file GatewayError.h.

Member Function Documentation

◆ read_error()

void GatewayError::read_error ( const std::string & filename,
std::string & err,
const std::string & url )
static

read the target response file that contains textual error information

The contents of the file are read directly into the error message.

Parameters
filenametarget response file name with the error information
errreturn the error message in this variable
urlthe remote request URL

Definition at line 47 of file GatewayError.cc.


The documentation for this class was generated from the following files: