Skip to content

Commit

Permalink
Issue eclipse-ee4j#2016 CloseReason has toString now
Browse files Browse the repository at this point in the history
Signed-off-by: David Matejcek <dmatej@seznam.cz>
  • Loading branch information
dmatej committed Nov 19, 2020
1 parent 00fd757 commit d129068
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,19 @@ public CloseType getType() {
*
* If the cause wasn't specified by user and it was closed locally then {@link #LOCALLY_CLOSED} will be returned. If the
* cause wasn't specified by user and it was closed remotely then {@link #REMOTELY_CLOSED} will be returned.
*
*
* @return information about an error, that caused the {@link Connection} to be closed
*/
public IOException getCause() {
return cause;
}


/**
* Returns also type and cause.
*/
@Override
public String toString() {
return super.toString() + "[type="+ getType() + ", cause=" + getCause() + "]";
}
}

0 comments on commit d129068

Please sign in to comment.