({{, (RefLink[LibraryFunctionError, paclet:ref/LibraryFunctionError])[name,code] 
represents an error returned from a (RefLink[LibraryFunction, paclet:ref/LibraryFunction]).}})

OpenersNotesSection(Spacer1)Details

Wolfram Libraries are dynamic libraries that follow the Wolfram LibraryLink structure.

(RefLink[LibraryFunctionError, paclet:ref/LibraryFunctionError]) is returned from a call to a (RefLink[LibraryFunction, paclet:ref/LibraryFunction]) when an error takes place.

(RefLink[LibraryFunction, paclet:ref/LibraryFunction]) objects are created by (RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

This example library shows how errors are treated by library functions:

fun=LibraryFunctionLoad["demo_error", "errorTest_Return",{Integer},"Void"]

When a library function returns an error result, a (RefLink[LibraryFunctionError, paclet:ref/LibraryFunctionError]) is returned by the Wolfram Language:

fun[6]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[LibraryFunctionLoad, paclet:ref/LibraryFunctionLoad])  ▪  (RefLink[LibraryFunction, paclet:ref/LibraryFunction])  ▪  (RefLink[FindLibrary, paclet:ref/FindLibrary])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[LibraryLink User Guide, paclet:LibraryLink/tutorial/Overview])}, {▪(RefLinkPlain[Library Structure, paclet:LibraryLink/tutorial/LibraryStructure])}, {▪(RefLinkPlain[Interacting with the Wolfram System, paclet:LibraryLink/tutorial/InteractionWithWolframLanguage])}})}})