12a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)# Copyright (c) 2013 The Chromium Authors. All rights reserved.
22a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
32a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)# found in the LICENSE file.
42a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)class BrowserGoneException(Exception):
52a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  """Represents a crash of the entire browser.
62a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  In this state, all bets are pretty much off."""
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  pass
92a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)class BrowserConnectionGoneException(BrowserGoneException):
112a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  pass
122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)class TabCrashException(Exception):
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  """Represents a crash of the current tab, but not the overall browser.
152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  In this state, the tab is gone, but the underlying browser is still alive."""
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  pass
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)class LoginException(Exception):
2090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)  pass
2190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)class EvaluateException(Exception):
232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  pass
24558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
25558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochclass ProfilingException(Exception):
26558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch  pass
27