Skip to content
Snippets Groups Projects
Commit 265e0a10 authored by Neda Moeini's avatar Neda Moeini
Browse files

Moved exceptions to a general exception module.

parent 4b8c54c1
Branches
Tags
No related merge requests found
Pipeline #84244 passed
This commit is part of merge request !83. Comments created here will be created in the context of that merge request.
...@@ -8,21 +8,9 @@ from pynetbox.models.dcim import Devices, DeviceTypes, Interfaces ...@@ -8,21 +8,9 @@ from pynetbox.models.dcim import Devices, DeviceTypes, Interfaces
from gso.products.product_types.router import Router from gso.products.product_types.router import Router
from gso.settings import load_oss_params from gso.settings import load_oss_params
from gso.utils.device_info import DEFAULT_SITE, FEASIBLE_IP_TRUNK_LAG_RANGE, ROUTER_ROLE, TierInfo from gso.utils.device_info import DEFAULT_SITE, FEASIBLE_IP_TRUNK_LAG_RANGE, ROUTER_ROLE, TierInfo
from gso.utils.exceptions import NotFoundError, WorkflowStateError
class NotFoundError(Exception):
"""Exception raised for not found search."""
pass
class WorkflowStateError(Exception):
"""Exception raised on problems during workflow."""
pass
# Define device models
class Manufacturer(pydantic.BaseModel): class Manufacturer(pydantic.BaseModel):
"""Defines the manufacturer of a device.""" """Defines the manufacturer of a device."""
......
class NotFoundError(Exception):
"""Exception raised for not found search."""
pass
class WorkflowStateError(Exception):
"""Exception raised on problems during workflow."""
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment