Skip to content

Implement ApiErrorId with Uuid #21

@coord-e

Description

@coord-e

ApiErrorId is just a newtype of String.

pub struct ApiErrorId(pub String);

However, it seems that Misskey's error ID is actually a UUID.
Implementing ApiErrorID with Uuid has a big advantage, especially in terms of the ability to create constants.
It would be very useful to have known error IDs as constants.

Unresolved questions

  • Are all Misskey's error IDs UUID?
  • Where to implement error ID constants?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions