derelict.util.exception

Undocumented in source.

Members

Aliases

Derelict_HandleMissingProc
alias Derelict_HandleMissingProc = Derelict_HandleMissingSymbol
Undocumented in source.
Derelict_SetMissingProcCallback
alias Derelict_SetMissingProcCallback = Derelict_SetMissingSymbolCallback
Undocumented in source.
MissingProcCallback
alias MissingProcCallback = MissingSymbolCallback
Undocumented in source.
MissingSymbolCallback
alias MissingSymbolCallback = bool function(string libName, string symbolName)

The MissingSymbolCallback allows the app to handle the case of missing symbols. By default, a SharedLibSymbolLoadException is thrown. However, if a the app determines that particular symbol is not needed, the callback can return true. This will cause the shared library to continue loading. Returning false will cause the exception to be thrown.

SharedLibProcLoadException
alias SharedLibProcLoadException = SymbolLoadException
Undocumented in source.

Classes

DerelictException
class DerelictException

Base class for all exceptions thrown by Derelict packages.

SharedLibLoadException
class SharedLibLoadException

This exception is thrown when a shared library cannot be loaded because it is either missing or not on the system path.

SymbolLoadException
class SymbolLoadException

This exception is thrown when a symbol cannot be loaded from a shared library, either because it does not exist in the library or because the library is corrupt.

Functions

Derelict_HandleMissingSymbol
void Derelict_HandleMissingSymbol(string libName, string symbolName)
Undocumented in source. Be warned that the author may not have intended to support it.
Derelict_SetMissingSymbolCallback
void Derelict_SetMissingSymbolCallback(MissingSymbolCallback callback)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

FailedSharedLib
struct FailedSharedLib

Helper struct to facilitate throwing a single SharedLibException after failing to load a library using multiple names.

Meta