mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
pgjindent jdbc files. First time jdbc files were formatted.
This commit is contained in:
@@ -4,26 +4,29 @@ import org.postgresql.util.*;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* This class extends java.sql.BatchUpdateException, and provides our
|
||||
* This class extends java.sql.BatchUpdateException, and provides our
|
||||
* internationalisation handling.
|
||||
*/
|
||||
class PBatchUpdateException extends java.sql.BatchUpdateException {
|
||||
class PBatchUpdateException extends java.sql.BatchUpdateException
|
||||
{
|
||||
|
||||
private String message;
|
||||
|
||||
public PBatchUpdateException(
|
||||
String error, Object arg1, Object arg2, int[] updateCounts ) {
|
||||
String error, Object arg1, Object arg2, int[] updateCounts )
|
||||
{
|
||||
|
||||
super(updateCounts);
|
||||
|
||||
Object[] argv = new Object[2];
|
||||
argv[0] = arg1;
|
||||
argv[1] = arg2;
|
||||
translate(error,argv);
|
||||
translate(error, argv);
|
||||
}
|
||||
|
||||
private void translate(String error, Object[] args) {
|
||||
message = MessageTranslator.translate(error,args);
|
||||
private void translate(String error, Object[] args)
|
||||
{
|
||||
message = MessageTranslator.translate(error, args);
|
||||
}
|
||||
|
||||
// Overides Throwable
|
||||
@@ -32,7 +35,7 @@ class PBatchUpdateException extends java.sql.BatchUpdateException {
|
||||
return message;
|
||||
}
|
||||
|
||||
// Overides Throwable
|
||||
// Overides Throwable
|
||||
public String getMessage()
|
||||
{
|
||||
return message;
|
||||
@@ -41,6 +44,6 @@ class PBatchUpdateException extends java.sql.BatchUpdateException {
|
||||
// Overides Object
|
||||
public String toString()
|
||||
{
|
||||
return message;
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user