Class Messages
java.lang.Object
EDU.purdue.jtb.common.Messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic voidPrints on System.err a fatal error message and the stack trace.static voidPrints on System.err a fatal error message and the stack trace.voidPrints on System.out an information text.voidPrints on System.out an information text and its line number.intvoidPrints on System.err the number of informations, warnings and errorsvoidResets to zero the number of errors and warnings.voidPrints on System.err a soft (non fatal) error text.voidPrints on System.err a soft (non fatal) error text and its line number.voidPrints on System.err a warning text.voidPrints on System.err a warning text and its line number.int
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
printSummary
public void printSummary()Prints on System.err the number of informations, warnings and errors -
info
Prints on System.out an information text.- Parameters:
s- - the information text
-
info
Prints on System.out an information text and its line number.- Parameters:
s- - the information textlineNum- - the information line numbercolNum- - the information column number
-
warning
Prints on System.err a warning text.- Parameters:
s- - the warning text
-
warning
Prints on System.err a warning text and its line number.- Parameters:
s- - the warning textlineNum- - the warning line numbercolNum- - the warning column number
-
softErr
Prints on System.err a soft (non fatal) error text.- Parameters:
s- - an error text
-
softErr
Prints on System.err a soft (non fatal) error text and its line number.- Parameters:
s- - the error textlineNum- - the error line numbercolNum- - the error column number
-
hardErr
Prints on System.err a fatal error message and the stack trace.- Parameters:
s- - a message
-
hardErr
-
infoCount
public int infoCount()- Returns:
- the number of informations
-
warningCount
public int warningCount()- Returns:
- the number of warnings
-
errorCount
public int errorCount()- Returns:
- the number of errors
-
resetCounts
public void resetCounts()Resets to zero the number of errors and warnings.
-