I am building a Core Banking System with micro service architecture and supporting…
- User
I am building a Core Banking System with micro service architecture and supporting distributed transaction. Please design an error code mapping system.
- Assistant
Designing an error code mapping system for a Core Banking System with microservice architecture and supporting distributed transactions is a complex task that requires careful consideration of various factors. Here are some general guidelines that you can follow when designing your error code mapping system:
- Use a consistent format for error codes: It is important to have a consistent format for error codes so that they can be easily identified and understood by developers and other stakeholders. A common approach is to use a prefix that indicates the source of the error (e.g., "CORE-") and a numerical suffix that represents the specific error.
- User
Please show me an example
- Assistant
Here is an example of an error code mapping system for a Core Banking System with microservice architecture and supporting distributed transactions:
Error Code Meaning
CORE-1000 Unknown error CORE-1001 Invalid request CORE-1002 Insufficient funds CORE-1003 Account not found CORE-1004 Transaction failed CORE-1005 Duplicate transaction CORE-1006 Unauthorized access CORE-1007 Account frozen CORE-1008 Account closed CORE-1009 Invalid account type CORE-1010 Invalid parameter
This is just a simple example, and you may want to include more specific error codes depending on the needs of your system. It is also important to document the conditions under which each error code is returned, as well as any potential resolutions or workarounds.
- User
Please show me example with multiple systems involved
- Assistant
Here is an example of an error code mapping system for a Core Banking System with microservice architecture and supporting distributed transactions that involves multiple systems:
Error Code Meaning
CORE-1000 Unknown error CORE-1001 Invalid request CORE-1002 Insufficient funds CORE-1003 Account not found CORE-1004 Transaction failed CORE-1005 Duplicate transaction CORE-1006 Unauthorized access CORE-1007 Account frozen CORE-1008 Account closed CORE-1009 Invalid account type CORE-1010 Invalid parameter
AUTH-2000 Unknown error AUTH-2001 Invalid username or password AUTH-2002 Account locked AUTH-2003 Account disabled AUTH-2004 Account expired AUTH-2005 Password expired AUTH-2006 Password reset required AUTH-2007 Two-factor authentication required
NETWORK-3000 Unknown error NETWORK-3001 Connection refused NETWORK-3002 Connection timeout NETWORK-3003 Network unreachable NETWORK-3004 Host unreachable NETWORK-3005 Protocol error
DATABASE-4000 Unknown error DATABASE-4001 Syntax error DATABASE-4002 Table not found DATABASE-4003 Duplicate key DATABASE-4004 Deadlock DATABASE-4005 Transaction rollback
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.