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

Need to revisit Error inheritance in all standard library modules #991

Closed
37 of 38 tasks
daneshk opened this issue Feb 18, 2021 · 0 comments · Fixed by ballerina-platform/module-ballerina-sql#154
Closed
37 of 38 tasks
Labels
Team/DIU Data, IO, and Util packages related issues Team/PCM Protocol connector packages related issues Type/Task

Comments

@daneshk
Copy link
Member

daneshk commented Feb 18, 2021

The way we use distinct error in most standard libraries are not correct. We need to create error hierarchy like below,

// Level 1
public type Error distinct error;

// Level 2
public type ClientError distinct Error;

// Level 3
public type GenericClientError distinct ClientError;

Reference PR: ballerina-platform/module-ballerina-http#211

  • io
  • url
  • java.arrays
  • random
  • regex
  • task
  • time
  • xmldata
  • crypto
  • os
  • xslt
  • reflect
  • uuid
  • log
  • cache
  • file
  • ftp
  • mime
  • nats
  • stan
  • tcp
  • udp
  • auth
  • email
  • http
  • jwt
  • oauth2
  • graphql
  • grpc
  • websocket
  • websub
  • websubhub
  • kafka
  • rabbitmq
  • transaction
  • sql
  • java.jdbc
  • mysql
@daneshk daneshk added this to the Swan Lake Alpha3 milestone Feb 18, 2021
@anupama-pathirage anupama-pathirage added Team/DIU Data, IO, and Util packages related issues Team/PCM Protocol connector packages related issues labels Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/DIU Data, IO, and Util packages related issues Team/PCM Protocol connector packages related issues Type/Task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants