Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
Add "serialVersionUID" for exceptions to avoid InvalidClassException (#…
Browse files Browse the repository at this point in the history
…481)

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
  • Loading branch information
quaff authored and jpkrohling committed Jul 9, 2018
1 parent 4253325 commit af9efcf
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import java.io.IOException;

public class BaggageRestrictionManagerException extends IOException {

private static final long serialVersionUID = -7154971918992152963L;

public BaggageRestrictionManagerException(String msg) {
super(msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class EmptyIpException extends RuntimeException {

private static final long serialVersionUID = 2084472238515931215L;

public EmptyIpException() {
super("Empty string given for ip");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class EmptyTracerStateStringException extends RuntimeException {

private static final long serialVersionUID = 9082120636922517100L;

public EmptyTracerStateStringException() {
super("Cannot convert empty string to tracer state");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class MalformedTracerStateStringException extends RuntimeException {

private static final long serialVersionUID = 6132770324736429065L;

public MalformedTracerStateStringException(String value) {
super("String does not match tracer state format: " + value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class NotFourOctetsException extends RuntimeException {

private static final long serialVersionUID = 5270319844335906266L;

public NotFourOctetsException() {
super("Wrong number of octets");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class SamplingStrategyErrorException extends RuntimeException {

private static final long serialVersionUID = -3749650864768854563L;

public SamplingStrategyErrorException(String msg) {
super(msg);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
package io.jaegertracing.internal.exceptions;

public class SenderException extends Exception {

private static final long serialVersionUID = 6770312992584114078L;

private int droppedSpans;

public SenderException(String msg, Throwable cause, int droppedSpans) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
import io.opentracing.propagation.Format;

public class UnsupportedFormatException extends RuntimeException {

private static final long serialVersionUID = 3589851499963551948L;

public UnsupportedFormatException(Format<?> format) {
super(format.toString());
}
Expand Down

0 comments on commit af9efcf

Please sign in to comment.