Skip to content

CreateFailed should wrap the underlying error if any #144

@althonos

Description

@althonos

Hi Will,
while I was working on fs.sshfs, I noticed that since fs.open_fs is expected to always raise CreateFailed when something goes wrong, it's not really easy to report what really went wrong.

I think that the CreateFailed exception should probably expose a exc attribute, like OperationFailed does. This way, it would be easier to manage the failed creation, depending on whether it comes from a PermissionError, a TimeoutError, a ResourceNotFound when create=False, etc.

What do you think about this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions