Skip to content

Commit

Permalink
chore: 使用されていない例外を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Feb 21, 2024
1 parent 5297559 commit 80980cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
18 changes: 0 additions & 18 deletions mipac/actions/antenna.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ async def delete(self, *, antenna_id: str) -> bool:
antenna_id : str | None, optional
target identifier
Raises
------
ParameterError
antenna id is required
Returns
-------
bool
Expand All @@ -58,11 +54,6 @@ async def show(self, *, antenna_id: str) -> Antenna:
-------
Antenna
antenna object
Raises
------
ParameterError
antenna id is required
"""
body = {"antennaId": antenna_id}
res_antenna: IAntenna = await self._session.request(
Expand Down Expand Up @@ -218,10 +209,6 @@ async def delete(self, *, antenna_id: str | None = None) -> bool:
antenna_id : str | None, optional
target identifier
Raises
------
ParameterError
antenna id is required
Returns
-------
bool
Expand All @@ -244,11 +231,6 @@ async def show(self, *, antenna_id: str | None = None) -> Antenna:
-------
Antenna
antenna object
Raises
------
ParameterError
antenna id is required
"""
antenna_id = antenna_id or self.__antenna_id

Expand Down
8 changes: 0 additions & 8 deletions mipac/errors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,3 @@ def raise_error(self):

class NotExistRequiredData(Exception):
"""クラスの中に必要なデータが不足している"""


class ParameterError(Exception):
"""引数に関するエラー"""


class CredentialsError(Exception):
"""認証情報に関するエラー"""

0 comments on commit 80980cf

Please sign in to comment.