Package org.firebirdsql.gds
Class GDSExceptionHelper.GDSMessage
- java.lang.Object
- 
- org.firebirdsql.gds.GDSExceptionHelper.GDSMessage
 
- 
- Enclosing class:
- GDSExceptionHelper
 
 public static final class GDSExceptionHelper.GDSMessage extends java.lang.ObjectThis class wraps message template obtained from isc_error_msg.properties file and allows to set parameters to the message.
- 
- 
Constructor SummaryConstructors Constructor Description GDSMessage(java.lang.String template)Constructs an instance of GDSMessage for the specified template.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetParamCount()Returns the number of parameters for the message template.voidsetParameter(int position, java.lang.String text)Sets the parameter valuevoidsetParameters(java.util.List<java.lang.String> messageParameters)Sets the parameter values.java.lang.StringtoString()Puts parameters into the template and return the obtained string.
 
- 
- 
- 
Method Detail- 
getParamCountpublic int getParamCount() Returns the number of parameters for the message template.- Returns:
- number of parameters.
 
 - 
setParameterpublic void setParameter(int position, java.lang.String text)Sets the parameter value- Parameters:
- position- the parameter number, 0 - first parameter.
- text- value of parameter
 
 - 
setParameterspublic void setParameters(java.util.List<java.lang.String> messageParameters) Sets the parameter values.Parameter values with an index value higher than the number of message arguments are added as extra parameters. - Parameters:
- messageParameters- Message parameters
 
 - 
toStringpublic java.lang.String toString() Puts parameters into the template and return the obtained string.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- string representation of the message.
 
 
- 
 
-