Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request for Custom Error Codes and Messages #5415

Open
golchha007 opened this issue Jan 27, 2025 · 1 comment
Open

Feature Request for Custom Error Codes and Messages #5415

golchha007 opened this issue Jan 27, 2025 · 1 comment
Labels
feature request Requests for new functionality

Comments

@golchha007
Copy link

Describe the Problem

We currently see generic error message is thrown for scenarios as mentioned below.
The request is to get custom error message and error code which would help us differentiate between different errors messages and scenarios.

Details :

Certificate format error
throw Error(The format of the provided certificate '${certificate.name}' is not supported. Supported formats are: ${supportedCertificateFormats.join(', ')}. ${format && ['jks', 'keystore'].includes(format) ? "You can convert Java Keystores (.jks, .keystore) into PKCS#12 keystores using the JVM's keytool CLI: keytool -importkeystore -srckeystore your-keystore.jks -destkeystore your-keystore.p12 -deststoretype pkcs12" : ''});

Token retrieval error

throw Error([
'The destination tried to provide authorization tokens but failed in all cases. This is most likely due to misconfiguration.',
'Original error messages:',
...authTokens.map(token => token.error)
].join(util_1.unixEOL));

User token missing error
throw Error(No user token (JWT) has been provided. This is strictly necessary for '${destination.authentication}'.);

Propose a Solution

The request is to get custom error message and error code which would help us differentiate between different errors messages and scenarios and will help the consumers of our library to handle different errors more gracefully.

Describe Alternatives

No response

Affected Development Phase

Development

Impact

Inconvenience

Timeline

Users of our library which uses cloud sdk is facing issues and we would need this as soon as possible as it completely blocks our development.

Additional Context

No response

@golchha007 golchha007 added the feature request Requests for new functionality label Jan 27, 2025
@deekshas8
Copy link
Contributor

Hi @golchha007 ,

Thanks for raising this and providing examples. I have moved this to our backlog. As we're low on capacity, I cannot promise when we'll get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants