@@ -34,7 +34,7 @@ public BSONException( final String msg ) {
34
34
* @param errorCode The error code.
35
35
* @param msg The error message.
36
36
*/
37
- public BSONException ( final String errorCode , final String msg ) {
37
+ public BSONException ( final int errorCode , final String msg ) {
38
38
super ( msg );
39
39
_errorCode = errorCode ;
40
40
}
@@ -52,7 +52,7 @@ public BSONException( final String msg , final Throwable t ) {
52
52
* @param msg The error message.
53
53
* @param t The throwable cause.
54
54
*/
55
- public BSONException ( final String errorCode , final String msg , final Throwable t ) {
55
+ public BSONException ( final int errorCode , final String msg , final Throwable t ) {
56
56
super ( msg , t );
57
57
_errorCode = errorCode ;
58
58
}
@@ -61,7 +61,7 @@ public BSONException( final String errorCode, final String msg, final Throwable
61
61
* Returns the error code.
62
62
* @return The error code.
63
63
*/
64
- public String getErrorCode () { return _errorCode ; }
64
+ public Integer getErrorCode () { return _errorCode ; }
65
65
66
66
/**
67
67
* Returns true if the error code is set (i.e., not null).
@@ -70,6 +70,6 @@ public boolean hasErrorCode() {
70
70
return (_errorCode != null ) ? true : false ;
71
71
}
72
72
73
- private String _errorCode = null ;
73
+ private Integer _errorCode = null ;
74
74
}
75
75
0 commit comments