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

Add "serialVersionUID" for exceptions to avoid InvalidClassException #481

Merged
merged 2 commits into from
Jul 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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