DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::exception Class Reference

#include <sycl/exception.hpp>

Inheritance diagram for sycl::_V1::exception:
Collaboration diagram for sycl::_V1::exception:

Public Member Functions

 __SYCL2020_DEPRECATED ("The version of an exception constructor which takes " "no arguments is deprecated.") exception()=default
 
virtual ~exception ()
 
 exception (std::error_code, const char *Msg)
 
 exception (std::error_code Ec, const std::string &Msg)
 
 exception (std::error_code)
 
 exception (int EV, const std::error_category &ECat, const std::string &WhatArg)
 
 exception (int, const std::error_category &, const char *)
 
 exception (int, const std::error_category &)
 
 exception (context, std::error_code, const std::string &)
 
 exception (context, std::error_code, const char *)
 
 exception (context, std::error_code)
 
 exception (context, int, const std::error_category &, const std::string &)
 
 exception (context, int, const std::error_category &, const char *)
 
 exception (context, int, const std::error_category &)
 
const std::error_code & code () const noexcept
 
const std::error_category & category () const noexcept
 
const char * what () const noexcept final
 
bool has_context () const noexcept
 
context get_context () const
 

Protected Member Functions

 exception (std::error_code Ec, const char *Msg, const int32_t PIErr)
 
 exception (std::error_code Ec, const std::string &Msg, const int32_t URErr)
 
 exception (std::error_code Ec, std::shared_ptr< context > SharedPtrCtx, const std::string &what_arg)
 
 exception (std::error_code Ec, std::shared_ptr< context > SharedPtrCtx, const char *WhatArg)
 

Friends

int32_t detail::get_ur_error (const exception &)
 
exception detail::set_ur_error (exception &&e, int32_t ur_err)
 

Detailed Description

Definition at line 75 of file exception.hpp.

Constructor & Destructor Documentation

◆ ~exception()

sycl::_V1::exception::~exception ( )
virtual

Definition at line 41 of file exception.cpp.

◆ exception() [1/16]

sycl::_V1::exception::exception ( std::error_code  EC,
const char *  Msg 
)

Definition at line 20 of file exception.cpp.

◆ exception() [2/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
const std::string &  Msg 
)
inline

Definition at line 84 of file exception.hpp.

◆ exception() [3/16]

sycl::_V1::exception::exception ( std::error_code  EC)

Definition at line 24 of file exception.cpp.

◆ exception() [4/16]

sycl::_V1::exception::exception ( int  EV,
const std::error_category &  ECat,
const std::string &  WhatArg 
)
inline

Definition at line 89 of file exception.hpp.

◆ exception() [5/16]

sycl::_V1::exception::exception ( int  EV,
const std::error_category &  ECat,
const char *  WhatArg 
)

Definition at line 26 of file exception.cpp.

◆ exception() [6/16]

sycl::_V1::exception::exception ( int  EV,
const std::error_category &  ECat 
)

Definition at line 30 of file exception.cpp.

◆ exception() [7/16]

sycl::_V1::exception::exception ( context  Ctx,
std::error_code  EC,
const std::string &  WhatArg 
)
inline

Definition at line 260 of file context.hpp.

◆ exception() [8/16]

sycl::_V1::exception::exception ( context  Ctx,
std::error_code  EC,
const char *  WhatArg 
)
inline

Definition at line 264 of file context.hpp.

◆ exception() [9/16]

sycl::_V1::exception::exception ( context  Ctx,
std::error_code  EC 
)
inline

Definition at line 268 of file context.hpp.

◆ exception() [10/16]

sycl::_V1::exception::exception ( context  Ctx,
int  EV,
const std::error_category &  ECat,
const std::string &  WhatArg 
)
inline

Definition at line 276 of file context.hpp.

◆ exception() [11/16]

sycl::_V1::exception::exception ( context  Ctx,
int  EV,
const std::error_category &  ECat,
const char *  WhatArg 
)
inline

Definition at line 271 of file context.hpp.

◆ exception() [12/16]

sycl::_V1::exception::exception ( context  Ctx,
int  EV,
const std::error_category &  ECat 
)
inline

Definition at line 281 of file context.hpp.

◆ exception() [13/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
const char *  Msg,
const int32_t  PIErr 
)
inlineprotected

Definition at line 124 of file exception.hpp.

◆ exception() [14/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
const std::string &  Msg,
const int32_t  URErr 
)
inlineprotected

Definition at line 127 of file exception.hpp.

◆ exception() [15/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
std::shared_ptr< context SharedPtrCtx,
const std::string &  what_arg 
)
inlineprotected

Definition at line 134 of file exception.hpp.

◆ exception() [16/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
std::shared_ptr< context SharedPtrCtx,
const char *  WhatArg 
)
protected

Member Function Documentation

◆ __SYCL2020_DEPRECATED()

sycl::_V1::exception::__SYCL2020_DEPRECATED ( "The version of an exception constructor which takes " "no arguments is deprecated."  )
default

◆ category()

const std::error_category & sycl::_V1::exception::category ( ) const
noexcept

Definition at line 45 of file exception.cpp.

References code().

◆ code()

◆ get_context()

context sycl::_V1::exception::get_context ( ) const

Definition at line 53 of file exception.cpp.

References has_context().

◆ has_context()

bool sycl::_V1::exception::has_context ( ) const
noexcept

Definition at line 51 of file exception.cpp.

Referenced by get_context().

◆ what()

const char * sycl::_V1::exception::what ( ) const
finalnoexcept

Friends And Related Function Documentation

◆ detail::get_ur_error

int32_t detail::get_ur_error ( const exception )
friend

◆ detail::set_ur_error

exception detail::set_ur_error ( exception &&  e,
int32_t  ur_err 
)
friend

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