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

How to pass arguments like {{user}} dynamically when throwing the exception #543

Open
CodyxKarthi opened this issue Jan 16, 2025 · 0 comments

Comments

@CodyxKarthi
Copy link

My Language File:

"fileLockedbyOtherUser" : "The file is currently locked by {{user}} and cannot be modified.",

while throwing exception, i want to pass arguments dynamically,

throw new PreconditionFailedException({
statusCode: ENUM_FILESTORE_STATUS_CODE_ERROR.FILE_LOCKED_BY_OTHERUSER,
message: 'filestore.error.fileLockedbyOtherUser',
});

but how to pass argument?

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

No branches or pull requests

1 participant