Skip to content

Add trap handling #7

Description

@laurivosandi

The !trap response sentence should raise Python exception. We're dealing with various Mikrotik devices and all the commands are not equally available on all the devices. Instead of crashing with an error Python exception should be raised so it could be handled in the calling code.

There likely should be hierarchy of exception classes such as MikrotikError and one of it's descendants could be MikrotikNoSuchCommandPrefixError

laurivosandi@ec4b0a3#diff-5de739d31a66af311095123847fc75aeb35a6a373b3db7e58beb50c9b5ecb495R141

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions