X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2FExceptions.py;h=1004d5b7829f5cfada98a5fd440fe77b2e46f264;hb=2063cfddc23cb2157d06ac0755e39ff6b8e457ef;hp=915f120195ac1717eaf752da3d07e74be5e29e1d;hpb=bd85ea4bb68783a0a58a6ddc6c3cc1dd22715eb1;p=bootmanager.git diff --git a/source/Exceptions.py b/source/Exceptions.py index 915f120..1004d5b 100644 --- a/source/Exceptions.py +++ b/source/Exceptions.py @@ -1,5 +1,5 @@ -#!/usr/bin/python2 - +#!/usr/bin/python +# # Copyright (c) 2003 Intel Corporation # All rights reserved. # @@ -7,9 +7,15 @@ # All rights reserved. class BootManagerException(Exception): - def __init__( self, err ): + def __init__(self, err): self.__fault= err - def __str__( self ): + def __str__(self): return self.__fault +class BootManagerAuthenticationException(Exception): + def __init__(self, err): + self.__fault= err + + def __str__(self): + return self.__fault