diff --git a/python_aternos/__init__.py b/python_aternos/__init__.py index 55bd15e..e1cb3f7 100644 --- a/python_aternos/__init__.py +++ b/python_aternos/__init__.py @@ -26,6 +26,7 @@ from .aterrors import ServerRunningError from .aterrors import ServerSoftwareError from .aterrors import ServerStorageError from .aterrors import FileError +from .aterrors import PermissionError from .atjsparse import exec, atob from .atjsparse import to_ecma5_function diff --git a/python_aternos/aterrors.py b/python_aternos/aterrors.py index f2b88b3..7c39495 100644 --- a/python_aternos/aterrors.py +++ b/python_aternos/aterrors.py @@ -54,3 +54,8 @@ class FileError(AternosError): """Raised when trying to execute a disallowed by Aternos file operation""" + + +class PermissionError(AternosError): + """Raised when trying to execute a non-allowed + command on a server (Think friends permissions)"""