Package pulp :: Package server :: Module pexceptions
[hide private]
[frames] | no frames]

Source Code for Module pulp.server.pexceptions

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # 
 4  # Copyright © 2010 Red Hat, Inc. 
 5  # 
 6  # This software is licensed to you under the GNU General Public License, 
 7  # version 2 (GPLv2). There is NO WARRANTY for this software, express or 
 8  # implied, including the implied warranties of MERCHANTABILITY or FITNESS 
 9  # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 
10  # along with this software; if not, see 
11  # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 
12  # 
13  # Red Hat trademarks are not licensed under GPLv2. No permission is 
14  # granted to use or replicate Red Hat trademarks that are incorporated 
15  # in this software or its documentation. 
16   
17   
18 -class PulpException(Exception):
19 """ 20 Base exception class for pulp with C-like printf syntax for the message. 21 """
22 - def __init__(self, value, *args):
23 self.value = value % args
24
25 - def __str__(self):
26 return repr(self.value)
27