make IndexSizeExceededException constructor take formatString and arguments than just fixed String

like ISE, IAE etc
This commit is contained in:
Himanshu Gupta 2015-10-06 13:44:22 -05:00
parent d8a1dd8d68
commit 8654732ef6
1 changed files with 4 additions and 4 deletions

View File

@ -25,14 +25,14 @@ public class IndexSizeExceededException extends IOException
{
}
public IndexSizeExceededException(String message)
public IndexSizeExceededException(String formatText, Object... arguments)
{
super(message);
super(String.format(formatText, arguments));
}
public IndexSizeExceededException(String message, Throwable cause)
public IndexSizeExceededException(Throwable cause, String formatText, Object... arguments)
{
super(message, cause);
super(String.format(formatText, arguments), cause);
}
public IndexSizeExceededException(Throwable cause)