Implement new error
design
#23098
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/NewFeature
Implementation issue to track #ballerina-platform/ballerina-spec#509
Sub Tasks
Error Type descriptor
Update to Error Detail Record and Constructor
message
andcause
move from the detail record into the error itselfstring
anderror?
respectively()
if not specifiedmessage
andcause
functions to access themmap<anydata|readonly>
(with no predefined fields)...
and a mapping constructor (not sure if this functionality is really necessary)Distinct Error Type
Implement Distinct Error syntax
Implement type-id support
Fix failing stdlib module tests due to error change Fix failing stdlib module tests due to error change #23594
Fix failing jballerina-unit-tests due to error change.
Fix and align error destructuring binding pattern Fix and align error destructuring binding pattern #23591
Fix and align error destructuring assignment binding pattern Fix and align error destruturing assignment binding pattern #23592
Re-enable tests disabled with
brokenOnErrorChange
Re-enable tests disabled withbrokenOnErrorChange
#23702Align Ballerina runtime generated errors to new error format Align Ballerina runtime generated errors to new error format. #23746
Align error values stringValue method with the spec Align error values stringValue method with the spec. #23897
Support intersection types for error type Support intersection types for error type definition #24403
Need to check and support error cause in QueryDesugar Need to check and support error cause in QueryDesugar #23858
Fix error match pattern to support error cause Fix error match pattern to support error cause #23593
The text was updated successfully, but these errors were encountered: