Skip to content

Commit

Permalink
Add default toString to AbstractLwM2mResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Oct 15, 2024
1 parent 7dd230c commit 812726a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public AbstractLwM2mResponse(ResponseCode code, String errorMessage, Object coap
this.coapResponse = coapResponse;
}

@Override
public String toString() {
return String.format("%s [code=%s, errorMessage=%s]", this.getClass().getSimpleName(), code, errorMessage);
}

@Override
public final ResponseCode getCode() {
return this.code;
Expand Down

0 comments on commit 812726a

Please sign in to comment.