<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX0007]]</b> is raised if the key store is null.<br/>
<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX0012]]</b> is raised if the key cannot be found in the specified key store.<br/>
<b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9992FOCX0023]]</b> is raised if the certificate alias is invalid.<br/><b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9993FOCX0024]]</b> is raised if an invalid algorithm is specified.<br/><b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9994FOCX0025]]</b> is raised if an exception occurs while the signing the document.<br/><b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9995FOCX0026]]</b> is raised if an exception occurs during key store initialization.<br/><b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9996FOCX0027]]</b> is raised if an IO exception occurs.<br/><b>[[XQuery Errors#Cryptographic Functions Errors|FOCX9999FOCX0028]]</b> is raised if the signature type is not supported.<br/>
|-
| valign='top' | '''Example'''
! width="95%"|Description
|-
|<code>FOCX01FOCX0001</code>
|The canonicalization algorithm is not supported.
|-
|<code>FOCX02FOCX0002</code>
|The digest algorithm is not supported.
|-
|<code>FOCX03FOCX0003</code>
|The signature algorithm is not supported.
|-
|<code>FOCX04FOCX0004</code>
|The XPath expression is invalid.
|-
|<code>FOCX05FOCX0005</code>
|The root element of argument $digital-certificate must have the name 'digital-certificate'.
|-
|<code>FOCX06FOCX0006</code>
|The child element of argument $digital-certificate having position $position must have the name $child-element-name.
|-
|<code>FOCX07FOCX0007</code>
|The keystore is null.
|-
|<code>FOCX08FOCX0008</code>
|I/O error while reading keystore.
|-
|<code>FOCX09FOCX0009</code>
|Permission denied to read keystore.
|-
|<code>FOCX10FOCX0010</code>
|The keystore URL is invalid.
|-
|<code>FOCX11FOCX0011</code>
|The keystore type is not supported.
|-
|<code>FOCX12FOCX0012</code>
|Cannot find key for alias in given keystore.
|-
|<code>FOCX13FOCX0013</code>
|The hashing algorithm is not supported.
|-
|<code>FOCX14FOCX0014</code>
|The encoding method is not supported.
|-
|<code>FOCX15FOCX0015</code>
|Cannot find Signature element.
|-
|<code>FOCX16FOCX0016</code>
|No such padding.
|-
|<code>FOCX17FOCX0017</code>
|Incorrect padding.
|-
|<code>FOCX18FOCX0018</code>
|The encryption type is not supported.
|-
|<code>FOCX19FOCX0019</code>
|The secret key is invalid.
|-
|<code>FOCX20FOCX0020</code>
|Illegal block size.
|-
|<code>FOCX21FOCX0021</code>
|The algorithm is not supported.
|-
|<code>FOCX22FOCX0023</code>
|An invalid certificate alias is specified. Added to the official specification.
|-
|<code>FOCX24FOCX0024</code>
|The algorithm is invalid. Added to the official specification.
|-
|<code>FOCX25FOCX0025</code>
|Signature cannot be processed. Added to the official specification.
|-
|<code>FOCX26FOCX0026</code>
|Keystore cannot be processed. Added to the official specification.
|-
|<code>FOCX27FOCX0027</code>
|An I/O Exception occurred. Added to the official specification.
|-
|<code>FOCX28FOCX0028</code>
|The specified signature type is not supported. Added to the official specification.
|}