Skip to main content

Module return_code

Module return_code 

Source
Expand description

Return codes (“Rückmeldungen”) of HIRMG and HIRMS, Formals 2017 B.7.

A ReturnCode keeps everything the bank sent in one code line: the four-digit code, its text, the reference element, the parameters, and what it refers to (Scope: the whole message for HIRMG, one customer segment for HIRMS). Its Class and Kind are derived from the stored code and parameters, so a code this client does not know loses nothing. Code meanings: Rückmeldungscodes 2026-02-03 (RM), B.1–B.4.

Structs§

Code
A four-digit return code (dig 4, Formals B.7.5.1), kept verbatim.
ReturnCode
One code line of HIRMG or HIRMS (“Rückmeldung”), with everything the bank sent in it.

Enums§

Category
What a caller can do about an error: one category per different reaction (docs/return-codes-design.md section 2). Every FinTSError has one (FinTSError::kind); a bank error’s comes from its selected ReturnCode.
Class
The class of a return code: its first digit (Formals B.7.5.1, RM B.1).
ClientWarning
What the client noticed about an answer without the bank saying so. Never an error: the answer is used as decoded.
Credentials
Which credentials problem (Category::Credentials).
Kind
The meaning of a return code this client knows, derived from the code and its parameters (RM). Kind::Other for every code not listed; its code, class, text and parameters stay on the ReturnCode.
Notice
A message for the caller: a bank code that is neither success, error nor consumed by the protocol (Formals B.7.5.1: show every bank message), or a warning the client itself raised about an answer. Examples of bank codes: 3050 (order version outdated), 3060, 3072, 3075, 3010, 3957, 3958.
NoticeDialog
Which dialog of an operation a Notice came from.
Scope
What a return code refers to.