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. 4 5 class EmptyDumpException(Exception): 6 def __str__(self): 7 return repr(self.args[0]) 8 9 10 class ParsingException(Exception): 11 def __str__(self): 12 return repr(self.args[0]) 13 14 15 class InvalidDumpException(ParsingException): 16 def __str__(self): 17 return "invalid heap profile dump: %s" % repr(self.args[0]) 18 19 20 class ObsoleteDumpVersionException(ParsingException): 21 def __str__(self): 22 return "obsolete heap profile dump version: %s" % repr(self.args[0]) 23