Fix import error in mac_platform_backend.py
[chromium-blink-merge.git] / tools / deep_memory_profiler / lib / exceptions.py
blob2c68af72cc2d33450e951df18a645568af431b89
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 class EmptyDumpException(Exception):
6 def __str__(self):
7 return repr(self.args[0])
10 class ParsingException(Exception):
11 def __str__(self):
12 return repr(self.args[0])
15 class InvalidDumpException(ParsingException):
16 def __str__(self):
17 return "invalid heap profile dump: %s" % repr(self.args[0])
20 class ObsoleteDumpVersionException(ParsingException):
21 def __str__(self):
22 return "obsolete heap profile dump version: %s" % repr(self.args[0])