Package muntjac :: Package terminal :: Module paint_exception
[hide private]
[frames] | no frames]

Source Code for Module muntjac.terminal.paint_exception

 1  # Copyright (C) 2012 Vaadin Ltd.  
 2  # Copyright (C) 2012 Richard Lincoln 
 3  #  
 4  # Licensed under the Apache License, Version 2.0 (the "License");  
 5  # you may not use this file except in compliance with the License.  
 6  # You may obtain a copy of the License at  
 7  #  
 8  #     http://www.apache.org/licenses/LICENSE-2.0  
 9  #  
10  # Unless required by applicable law or agreed to in writing, software  
11  # distributed under the License is distributed on an "AS IS" BASIS,  
12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
13  # See the License for the specific language governing permissions and  
14  # limitations under the License. 
15   
16   
17 -class PaintException(IOError):
18 """C{PaintExcepection} is thrown if painting of a 19 component fails. 20 21 @author: Vaadin Ltd. 22 @author: Richard Lincoln 23 @version: 1.1.2 24 """ 25
26 - def __init__(self, arg):
27 """Constructs an instance of C{PaintExeception} with the specified 28 detail message or an instance of C{PaintExeception} from IOException. 29 30 @param arg: 31 the detail message or the original exception 32 """ 33 super(PaintException, self).__init__( str(arg) )
34