RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Types | Public Member Functions | List of all members
rstudio::launcher_plugins::api::ErrorResponse Class Referencefinal

Class which represents an error response which can be sent to the Launcher in response to any request. More...

#include <Response.hpp>

Inheritance diagram for rstudio::launcher_plugins::api::ErrorResponse:
rstudio::launcher_plugins::api::Response rstudio::launcher_plugins::Noncopyable

Public Types

enum  Type {
  INVALID_RESPONSE = -1, UNKNOWN = 0, REQUEST_NOT_SUPPORTED = 1, INVALID_REQUEST = 2,
  JOB_NOT_FOUND = 3, PLUGIN_RESTARTED = 4, TIMEOUT = 5, JOB_NOT_RUNNING = 6,
  JOB_OUTPUT_NOT_FOUND = 7, INVALID_JOB_STATE = 8, JOB_CONTROL_FAILURE = 9, UNSUPPORTED_VERSION = 10
}
 

Public Member Functions

 ErrorResponse (uint64_t in_requestId, Type in_errorType, std::string in_errorMessage)
 Constructor. More...
 
json::Object toJson () const override
 Converts this error response to a JSON object. More...
 
- Public Member Functions inherited from rstudio::launcher_plugins::api::Response
virtual ~Response ()=default
 Virtual destructor to allow for inheritance.
 
- Public Member Functions inherited from rstudio::launcher_plugins::Noncopyable
 Noncopyable ()=default
 Default constructor.
 
 Noncopyable (const Noncopyable &)=delete
 Deleted copy constructor.
 
Noncopyableoperator= (const Noncopyable &)=delete
 Deleted assignment operator.
 

Additional Inherited Members

- Protected Types inherited from rstudio::launcher_plugins::api::Response
enum  Type {
  Type::ERROR = -1, Type::HEARTBEAT = 0, Type::BOOTSTRAP = 1, Type::JOB_STATE = 2,
  Type::JOB_STATUS = 3, Type::CONTROL_JOB = 4, Type::JOB_OUTPUT = 5, Type::JOB_RESOURCE_UTIL = 6,
  Type::JOB_NETWORK = 7, Type::CLUSTER_INFO = 8
}
 
- Protected Member Functions inherited from rstudio::launcher_plugins::api::Response
 Response (Type in_responseType, uint64_t in_requestId)
 Constructor. More...
 

Detailed Description

Class which represents an error response which can be sent to the Launcher in response to any request.

Constructor & Destructor Documentation

◆ ErrorResponse()

rstudio::launcher_plugins::api::ErrorResponse::ErrorResponse ( uint64_t  in_requestId,
Type  in_errorType,
std::string  in_errorMessage 
)

Constructor.

Parameters
in_requestIdThe ID of the request for which this error is being returned.
in_errorTypeThe type of error which occurred while processing the request.
in_errorMessageA message describing the details of the error.

Member Function Documentation

◆ toJson()

json::Object rstudio::launcher_plugins::api::ErrorResponse::toJson ( ) const
overridevirtual

Converts this error response to a JSON object.

Returns
The JSON object which represents this error response.

Reimplemented from rstudio::launcher_plugins::api::Response.


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