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 pi_int32 PIErr)
 
 exception (std::error_code Ec, const std::string &Msg, const pi_int32 PIErr)
 
 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

pi_int32 detail::get_pi_error (const exception &)
 
exception detail::set_pi_error (exception &&e, pi_int32 pi_err)
 

Detailed Description

Definition at line 77 of file exception.hpp.

Constructor & Destructor Documentation

◆ ~exception()

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

Definition at line 40 of file exception.cpp.

◆ exception() [1/16]

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

Definition at line 19 of file exception.cpp.

◆ exception() [2/16]

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

Definition at line 86 of file exception.hpp.

◆ exception() [3/16]

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

Definition at line 23 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 91 of file exception.hpp.

◆ exception() [5/16]

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

Definition at line 25 of file exception.cpp.

◆ exception() [6/16]

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

Definition at line 29 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 pi_int32  PIErr 
)
inlineprotected

Definition at line 126 of file exception.hpp.

◆ exception() [14/16]

sycl::_V1::exception::exception ( std::error_code  Ec,
const std::string &  Msg,
const pi_int32  PIErr 
)
inlineprotected

Definition at line 129 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 136 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 44 of file exception.cpp.

References code().

◆ code()

◆ get_context()

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

Definition at line 52 of file exception.cpp.

References has_context().

◆ has_context()

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

Definition at line 50 of file exception.cpp.

Referenced by get_context().

◆ what()

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

Friends And Related Function Documentation

◆ detail::get_pi_error

pi_int32 detail::get_pi_error ( const exception )
friend

◆ detail::set_pi_error

exception detail::set_pi_error ( exception &&  e,
pi_int32  pi_err 
)
friend

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