Package org.lwjgl.llvm
Class LLVMError
- java.lang.Object
-
- org.lwjgl.llvm.LLVMError
-
public class LLVMError extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMError.FunctionsContains the function pointers loaded fromLLVMCore.getLibrary().
-
Field Summary
Fields Modifier and Type Field Description static intLLVMErrorSuccess
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidLLVMConsumeError(long Err)Dispose of the given error without handling it.static longLLVMCreateStringError(java.lang.CharSequence ErrMsg)Create aStringError.static longLLVMCreateStringError(java.nio.ByteBuffer ErrMsg)Create aStringError.static voidLLVMDisposeErrorMessage(java.nio.ByteBuffer ErrMsg)Dispose of the given error message.static java.nio.ByteBufferLLVMGetErrorMessage(long Err)Returns the given string's error message.static longLLVMGetErrorTypeId(long Err)Returns the type id for the given error instance, which must be a failure value (i.e.static longLLVMGetStringErrorTypeId()Returns the type id for llvmStringError.static longnLLVMCreateStringError(long ErrMsg)Unsafe version of:CreateStringErrorstatic voidnLLVMDisposeErrorMessage(long ErrMsg)Unsafe version of:DisposeErrorMessagestatic longnLLVMGetErrorMessage(long Err)Unsafe version of:GetErrorMessage
-
-
-
Field Detail
-
LLVMErrorSuccess
- See Also:
- Constant Field Values
-
-
Method Detail
-
LLVMGetErrorTypeId
public static long LLVMGetErrorTypeId(long Err)
Returns the type id for the given error instance, which must be a failure value (i.e. non-null).
-
LLVMConsumeError
public static void LLVMConsumeError(long Err)
Dispose of the given error without handling it.This operation consumes the error, and the given
LLVMErrorRefvalue is not usable once this call returns. Note: This method only needs to be called if the error is not being passed to some other consuming operation, e.g.GetErrorMessage.
-
nLLVMGetErrorMessage
public static long nLLVMGetErrorMessage(long Err)
Unsafe version of:GetErrorMessage
-
LLVMGetErrorMessage
@Nullable public static java.nio.ByteBuffer LLVMGetErrorMessage(long Err)
Returns the given string's error message.This operation consumes the error, and the given
LLVMErrorRefvalue is not usable once this call returns. The caller is responsible for disposing of the string by callingDisposeErrorMessage.
-
nLLVMDisposeErrorMessage
public static void nLLVMDisposeErrorMessage(long ErrMsg)
Unsafe version of:DisposeErrorMessage
-
LLVMDisposeErrorMessage
public static void LLVMDisposeErrorMessage(java.nio.ByteBuffer ErrMsg)
Dispose of the given error message.
-
LLVMGetStringErrorTypeId
public static long LLVMGetStringErrorTypeId()
Returns the type id for llvmStringError.
-
nLLVMCreateStringError
public static long nLLVMCreateStringError(long ErrMsg)
Unsafe version of:CreateStringError
-
LLVMCreateStringError
public static long LLVMCreateStringError(java.nio.ByteBuffer ErrMsg) public static long LLVMCreateStringError(java.lang.CharSequence ErrMsg)
Create aStringError.- Since:
- 12
-
-