Align Ballerina runtime generated errors to new error format. #23746
Labels
Priority/High
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Improvement
Description:
For examle the type cast error at the moment is
{ballerina}TypeCastError {"message":"incompatible types: 'OurProccessingError' cannot be cast to 'errors:OrderProcessingError'"}
This is in the old error format, with a string and a message. We should align this to the new format.
error "incompatible types: 'OurProccessingError' cannot be cast to 'errors:OrderProcessingError'"
or
TypeCastError "incompatible types: 'OurProccessingError' cannot be cast to 'errors:OrderProcessingError'"
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: