Skip to content

Commit

Permalink
Make SQLServerException constructors public
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyushawn committed Jul 5, 2017
1 parent c60e56d commit 3bd68b5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,14 @@ static String getErrString(String errCode) {
* @param cause
* The exception that caused this exception
*/
SQLServerException(String errText,
public SQLServerException(String errText,
SQLState sqlState,
DriverError driverError,
Throwable cause) {
this(errText, sqlState.getSQLStateCode(), driverError.getErrorCode(), cause);
}

SQLServerException(String errText,
public SQLServerException(String errText,
String errState,
int errNum,
Throwable cause) {
Expand All @@ -149,15 +149,15 @@ static String getErrString(String errCode) {
ActivityCorrelator.setCurrentActivityIdSentFlag(); // set the activityid flag so that we don't send the current ActivityId later.
}

SQLServerException(String errText,
public SQLServerException(String errText,
Throwable cause) {
super(errText);
initCause(cause);
logException(null, errText, true);
ActivityCorrelator.setCurrentActivityIdSentFlag();
}

/* L0 */ SQLServerException(Object obj,
/* L0 */ public SQLServerException(Object obj,
String errText,
String errState,
int errNum,
Expand All @@ -180,7 +180,7 @@ static String getErrString(String errCode) {
* @param bStack
* true to generate the stack trace
*/
/* L0 */ SQLServerException(Object obj,
/* L0 */ public SQLServerException(Object obj,
String errText,
String errState,
StreamError streamError,
Expand Down

0 comments on commit 3bd68b5

Please sign in to comment.