@Namespace(value="dnnl") @NoOffset @Properties(inherit=dnnl.class) public class error extends Pointer
oneDNN exception class. This class captures the status returned by a failed C API function and the error message from the call site.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
error(int status,
BytePointer message)
Constructs an instance of an exception class.
|
error(int status,
String message) |
error(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
message() |
error |
message(BytePointer setter) |
int |
status() |
error |
status(int setter) |
BytePointer |
toStdString() |
BytePointer |
what()
Returns the explanatory string.
|
static void |
wrap_c_api(int status,
BytePointer message)
A convenience function for wrapping calls to C API functions.
|
static void |
wrap_c_api(int status,
String message) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic error(Pointer p)
Pointer.Pointer(Pointer).public error(@Cast(value="dnnl_status_t") int status, @Cast(value="const char*") BytePointer message)
status - The error status returned by a C API function.message - The error message.public error status(int setter)
@Cast(value="const char*") public BytePointer message()
public error message(BytePointer setter)
@NoException @Cast(value="const char*") public BytePointer what()
public static void wrap_c_api(@Cast(value="dnnl_status_t") int status, @Cast(value="const char*") BytePointer message)
status - The error status returned by a C API function.message - The error message.@StdString public BytePointer toStdString()
Copyright © 2020. All rights reserved.