Skip to content

Commit

Permalink
chore(exceptions): make NoSuchEnum extend ParsingError
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Feb 5, 2024
1 parent aec71db commit 263529c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions hslog/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,7 @@ class CorruptLogError(ParsingError):
pass


class ExporterError(Exception):
"""Generic exception that happens during PacketTree export."""
pass


class MissingPlayerData(RuntimeError):
"""Raised when it is not possible to reverse a LazyPlayer instance."""
pass


class NoSuchEnum(Exception):
class NoSuchEnum(ParsingError):
"""Raised to indicate a log included an invalid enum value."""

def __init__(self, enum, value):
Expand All @@ -39,3 +29,13 @@ def __init__(self, enum, value):

self.enum = enum
self.value = value


class ExporterError(Exception):
"""Generic exception that happens during PacketTree export."""
pass


class MissingPlayerData(RuntimeError):
"""Raised when it is not possible to reverse a LazyPlayer instance."""
pass

0 comments on commit 263529c

Please sign in to comment.