"""Definitions of exceptions used by AndroidEnv."""


class ReadObservationError(Exception):
  """When the environment is unable to obtain an observation from a simulator."""
  pass


class ObservationDecodingError(ReadObservationError):
  """When the environment is unable to decode the observation from a simulator."""
  pass


class PipeTimedOutError(ReadObservationError):
  """When the environment waited for too long for part of an observation."""
  pass


class RemoteControllerError(Exception):
  """Error raised by the RemoteController."""


class RemoteControllerInitError(RemoteControllerError):
  pass


class TooManyRestartsError(RemoteControllerError):
  """The number of restarts has exceeded _MAX_RESTART_TRIES."""
  pass


class NotAllowedError(Exception):
  """When the player does something that outside of the task scope."""
  pass


class PlayerExitedActivityError(NotAllowedError):
  """When the player quits the current Android activity."""
  pass


class PlayerExitedViewHierarchyError(NotAllowedError):
  """When the player quits the current Android app screen."""
  pass


class SDCardWriteError(Exception):
  """Raised when an error occurred when writing to the SD card."""
  pass


class AdbControllerError(Exception):
  """Errors that can be raised by ADBController."""
  pass


class AdbControllerShellInitError(AdbControllerError):
  """Raised when an error occurred when initializing ADB shell."""
  pass


class AdbControllerPexpectError(AdbControllerError):
  """Raise when a problem with pexpect communication occurs."""
  pass


class AdbControllerDeviceTimeoutError(AdbControllerError):
  """Raised when a device takes too long to respond."""
  pass


class AdbControllerConnectionError(AdbControllerError):
  """Error connecting to tcpip address."""
  pass


class SimulatorCrashError(Exception):
  """Raised when an AndroidSimulator crashed."""
  pass


class ConsoleConnectionError(Exception):
  """Raised when cannot connect to the emulator console."""
  pass


class SendActionError(Exception):
  """Raised when action couldn't be sent successfully."""
  pass


class StepCommandError(Exception):
  """Raised when setup step interpreter cannot process a command."""
  pass


class AdbCallError(StepCommandError):
  """Raised when the execution of an ADB call has failed."""
  pass


class WaitForAppScreenError(StepCommandError):
  """Raised when the wait_for_app_screen success check is not met."""
  pass


class CheckInstallError(StepCommandError):
  """Raised when the check_install success check is not met."""
  pass


class WaitForMessageError(StepCommandError):
  """Raised when the wait_for_message success check is not met."""
  pass

@@ -160,39 +160,32 @@
 a simulator.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Observat
@@ -303,31 +303,24 @@
 mulator.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Pipe
@@ -429,31 +429,24 @@
 rvation.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Remo
@@ -581,20 +581,81 @@
 ror):%0A  
-pass
+%22%22%22Raised when RemoteController was not initialized correctly.%22%22%22
 %0A%0A%0Aclass
@@ -760,31 +760,24 @@
 T_TRIES.%22%22%22%0A
-  pass%0A
 %0A%0Aclass NotA
@@ -867,31 +867,24 @@
 k scope.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Play
@@ -979,31 +979,24 @@
 ctivity.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Play
@@ -1098,31 +1098,24 @@
  screen.%22%22%22%0A
-  pass%0A
 %0A%0Aclass SDCa
@@ -1202,31 +1202,24 @@
 SD card.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -1293,31 +1293,24 @@
 troller.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -1417,31 +1417,24 @@
 B shell.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -1536,31 +1536,24 @@
  occurs.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -1653,31 +1653,24 @@
 respond.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -1754,31 +1754,24 @@
 address.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Simu
@@ -1843,31 +1843,24 @@
 crashed.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Cons
@@ -1946,31 +1946,24 @@
 console.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Send
@@ -2040,31 +2040,24 @@
 ssfully.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Step
@@ -2146,31 +2146,24 @@
 command.%22%22%22%0A
-  pass%0A
 %0A%0Aclass AdbC
@@ -2247,31 +2247,24 @@
  failed.%22%22%22%0A
-  pass%0A
 %0A%0Aclass Wait
@@ -2362,39 +2362,32 @@
  is not met.%22%22%22%0A
-  pass%0A
 %0A%0Aclass CheckIns
@@ -2479,23 +2479,16 @@
 met.%22%22%22%0A
-  pass%0A
 %0A%0Aclass 
@@ -2518,32 +2518,32 @@
 pCommandError):%0A
+
   %22%22%22Raised when
@@ -2597,11 +2597,4 @@
 %22%22%22%0A
-  pass%0A

Remove unnecessary "pass" statements from errors.py