Skip to content

[Enhancement] UserIsDeactivatedError #272

Description

@antazoey

Summary

Add a custom exception for when trying to reactivate device when the user is deactivated.

Right now, a bad request is thrown containing the string USER_IS_DEACTIVATED.

Proposed API

class UserIsDeactivatedError:
"""An error raised when trying to perform an operation on a deactivated user."""

Intended Use Case

Be able to know what I can't reactivate device via a custom exception

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions