org.kuali.kfs.gl.businessobject
Class ScrubberMessage

java.lang.Object
  extended by org.kuali.kfs.gl.businessobject.ScrubberMessage

public class ScrubberMessage
extends Object

A class that holds an error message that would have been encountered during a GL batch job


Field Summary
static int TYPE_FATAL
          To mark Fatal errors, ones that should abend a batch process
static int TYPE_WARNING
          To mark warning errors, ones that should simply be logged but not abend the process
 
Constructor Summary
ScrubberMessage(String m, int t)
          Constructs a ScrubberMessage instance
 
Method Summary
 String getMessage()
          Returns the error message of this object
 int getType()
          Returns the error type for this object
 void setMessage(String message)
          Sets the error message for this object
 void setType(int type)
          Sets the error type for this object
 String toString()
          Returns the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_FATAL

public static int TYPE_FATAL
To mark Fatal errors, ones that should abend a batch process


TYPE_WARNING

public static int TYPE_WARNING
To mark warning errors, ones that should simply be logged but not abend the process

Constructor Detail

ScrubberMessage

public ScrubberMessage(String m,
                       int t)
Constructs a ScrubberMessage instance

Parameters:
m - the message
t - the type of message
Method Detail

toString

public String toString()
Returns the message

Overrides:
toString in class Object
See Also:
Object.toString()

getMessage

public String getMessage()
Returns the error message of this object

Returns:
the error message held by this object

setMessage

public void setMessage(String message)
Sets the error message for this object

Parameters:
message - the message to set

getType

public int getType()
Returns the error type for this object

Returns:
the error type of this object

setType

public void setType(int type)
Sets the error type for this object

Parameters:
type - an error type to set


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.