File: errors.py

package info (click to toggle)
flexparser 0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: python: 2,558; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from __future__ import annotations

import typing as ty
from dataclasses import dataclass

from flexparser import flexparser as fp


@dataclass(frozen=True)
class DefinitionSyntaxError(fp.ParsingError):
    msg: str
    base_exception: ty.Optional[Exception] = None


@dataclass(frozen=True)
class UnexpectedScaleInContainer(fp.ParsingError):
    msg: str