summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/errors.py
Commit message (Collapse)AuthorAgeFilesLines
* Add question support.Miloslav Trmač2009-07-171-0/+4
| | | | Signed-off-by: Martin Sivak <msivak@redhat.com>
* Be more expressive in the error messages.Joel Andres Granados2008-07-151-14/+12
| | | | | | | | - This patch will append an "FAK_ERROR" string to the error message. This will help them to be noticed when the user encounters them in the log or the stdout. - Create parent error class that has all the common qualities for the error classes.
* Catch the exception where the user configures a plugin that is not found.Joel Andres Granados2008-07-151-1/+1
|
* Be sure to use the "\" character when coding a string in multiple lines.Joel Andres Granados2008-07-141-1/+1
| | | | | | | | | | | | | | This behavior is prefered to enclosing the string with parenthesis. When using "\" remember to close the strings with quotation marks to have a clean output. Prefered: message = "long string " \ "end of long string" Not prefered: message = ("long string " "end of long string"
* Avoid the ugly space left by adding "\" to a string separation.Joel Andres Granados2008-07-141-2/+2
| | | | | | | | | | | | | | | When deviding a string into two lines one must use pythons automatic string concatenation (python concatenates strings that are in different line but are inside parenthesis). Do not use the "\" in the string as this will cause strange and unwanted output. Yes: print("long string" "rest of string") No: print("long string \ rest of string")
* Fix the format of the firstaidkit file.Joel Andres Granados2008-07-141-7/+9
| | | | | | | | | | | | | - Indendtation should be 4 spaces. There was a function indented with 8 spaces. - Lines should be shorted than 80 chars. It just looks pretty :) Think of terminals whith only 80 char of length. Think of debuging in rescue mode. - Change also the print statements. Just getting ready for python 3000. - Get some spaces between elifs - There should not be any lines ending in spaces. - This can all be read in the python code conventions http://www.python.org/dev/peps/pep-0008/
* Create a general purpose exception for thing that dont have exception yet.Joel Andres Granados2008-06-041-0/+11
|
* Create an use the invalidpluginname exception.Joel Andres Granados2008-03-141-0/+6
|
* Fix the __init__ of Invalid Flow Name exceptionMartin Sivak2008-01-021-1/+1
|
* Move from tasker to pyfirstaidkit to try to follow the standard in ↵Joel Andres Granados2008-01-021-0/+29
site-packages.