Unless stated otherwise, Rebex API methods raise exceptions to indicate errors and return successfully to indicate success.
LoadDer and other methods in
Certificate and related classes usually throw
CryptographicException on errors, although another exceptions are possible as well when appropriate (a non-existent file will lead to FileNotFoundException).
Ftp object mostly raises
FtpException on errors that contains a
Response properties that often contain additional information. Other components (SFTP, Secure Mail, and so on) use the same approach.