cheshirekow  v0.1.0
mpblocks::cuda::CudaException Class Reference

an exception which carries a standard error code More...

#include <mpblocks/cuda/ExceptionStream.h>

Inheritance diagram for mpblocks::cuda::CudaException:

Public Member Functions

cudaError_t code ()
 
 CudaException (cudaError_t code, const std::string &msg)
 
virtual const char * what () const throw ()
 
virtual ~CudaException () throw ()
 

Private Attributes

cudaError_t m_code
 
std::string m_message
 

Detailed Description

an exception which carries a standard error code

Definition at line 67 of file ExceptionStream.h.

Constructor & Destructor Documentation

mpblocks::cuda::CudaException::CudaException ( cudaError_t  code,
const std::string &  msg 
)
inline

Definition at line 75 of file ExceptionStream.h.

virtual mpblocks::cuda::CudaException::~CudaException ( )
throw (
)
inlinevirtual

Definition at line 80 of file ExceptionStream.h.

Member Function Documentation

cudaError_t mpblocks::cuda::CudaException::code ( )
inline

Definition at line 82 of file ExceptionStream.h.

virtual const char* mpblocks::cuda::CudaException::what ( ) const
throw (
)
inlinevirtual

Definition at line 84 of file ExceptionStream.h.

Member Data Documentation

cudaError_t mpblocks::cuda::CudaException::m_code
private

Definition at line 71 of file ExceptionStream.h.

std::string mpblocks::cuda::CudaException::m_message
private

Definition at line 72 of file ExceptionStream.h.


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