mirror of https://github.com/apache/maven.git
Add serialVersionUID to API exceptions
This commit is contained in:
parent
1062d05cb0
commit
5c981cdef0
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -31,6 +33,7 @@ public class ArtifactDeployerException extends MavenException {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 7421964724059077698L;
|
private static final long serialVersionUID = 7421964724059077698L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,6 +31,7 @@ public class ArtifactInstallerException extends MavenException {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 3652561971360586373L;
|
private static final long serialVersionUID = 3652561971360586373L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,6 +30,7 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ArtifactResolverException extends MavenException {
|
public class ArtifactResolverException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 7252294837746943917L;
|
private static final long serialVersionUID = 7252294837746943917L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,11 +18,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ChecksumAlgorithmServiceException extends MavenException {
|
public class ChecksumAlgorithmServiceException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1201171469179367694L;
|
private static final long serialVersionUID = 1201171469179367694L;
|
||||||
|
|
||||||
public ChecksumAlgorithmServiceException(String message, Throwable cause) {
|
public ChecksumAlgorithmServiceException(String message, Throwable cause) {
|
||||||
|
|
|
@ -18,11 +18,14 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
@Experimental
|
@Experimental
|
||||||
public class DependencyResolverException extends MavenException {
|
public class DependencyResolverException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
private static final long serialVersionUID = 1101171569179057614L;
|
private static final long serialVersionUID = 1101171569179057614L;
|
||||||
|
|
||||||
public DependencyResolverException(String message, Throwable cause) {
|
public DependencyResolverException(String message, Throwable cause) {
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,6 +30,9 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
public class LookupException extends MavenException {
|
public class LookupException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -6259322450070320286L;
|
||||||
|
|
||||||
public LookupException(String message) {
|
public LookupException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
public class MavenException extends RuntimeException {
|
public class MavenException extends RuntimeException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 9027638326336093132L;
|
||||||
|
|
||||||
public MavenException() {}
|
public MavenException() {}
|
||||||
|
|
||||||
public MavenException(String message) {
|
public MavenException(String message) {
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -31,6 +32,9 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ModelBuilderException extends MavenException {
|
public class ModelBuilderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -1865447022070650896L;
|
||||||
|
|
||||||
private final ModelBuilderResult result;
|
private final ModelBuilderResult result;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ProjectBuilderException extends MavenException {
|
public class ProjectBuilderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -7629871850875943799L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param message the message to give
|
* @param message the message to give
|
||||||
* @param e the {@link Exception}
|
* @param e the {@link Exception}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
public class PrompterException extends MavenException {
|
public class PrompterException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -3505070928479515081L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param message the message to give
|
* @param message the message to give
|
||||||
* @param e the {@link Exception}
|
* @param e the {@link Exception}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@ -31,6 +32,9 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
public class SettingsBuilderException extends MavenException {
|
public class SettingsBuilderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 4714858598345418083L;
|
||||||
|
|
||||||
private final List<BuilderProblem> problems;
|
private final List<BuilderProblem> problems;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exceptions thrown by the {@link SuperPomProvider} service.
|
* Exceptions thrown by the {@link SuperPomProvider} service.
|
||||||
*
|
*
|
||||||
|
@ -25,6 +27,9 @@ package org.apache.maven.api.services;
|
||||||
*/
|
*/
|
||||||
public class SuperPomProviderException extends MavenException {
|
public class SuperPomProviderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -8659892034004509331L;
|
||||||
|
|
||||||
public SuperPomProviderException() {
|
public SuperPomProviderException() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ToolchainManagerException extends MavenException {
|
public class ToolchainManagerException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -9465854226608498L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param message the message to give
|
* @param message the message to give
|
||||||
* @param e the {@link Exception}
|
* @param e the {@link Exception}
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
@ -31,6 +32,9 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
public class ToolchainsBuilderException extends MavenException {
|
public class ToolchainsBuilderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 7899871809665729349L;
|
||||||
|
|
||||||
private final List<BuilderProblem> problems;
|
private final List<BuilderProblem> problems;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Consumer;
|
import org.apache.maven.api.annotations.Consumer;
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
@Consumer
|
@Consumer
|
||||||
public class TransportProviderException extends MavenException {
|
public class TransportProviderException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -6066070072576465969L;
|
||||||
|
|
||||||
public TransportProviderException(String message, Throwable cause) {
|
public TransportProviderException(String message, Throwable cause) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
*/
|
*/
|
||||||
@Experimental
|
@Experimental
|
||||||
public class VersionParserException extends MavenException {
|
public class VersionParserException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1504740189114877333L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param message the message to give
|
* @param message the message to give
|
||||||
* @param e the {@link Exception}
|
* @param e the {@link Exception}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Consumer;
|
import org.apache.maven.api.annotations.Consumer;
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
@Consumer
|
@Consumer
|
||||||
public class VersionRangeResolverException extends MavenException {
|
public class VersionRangeResolverException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 4455478418692494141L;
|
||||||
|
|
||||||
public VersionRangeResolverException(String message, Throwable cause) {
|
public VersionRangeResolverException(String message, Throwable cause) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.maven.api.services;
|
package org.apache.maven.api.services;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
|
||||||
import org.apache.maven.api.annotations.Consumer;
|
import org.apache.maven.api.annotations.Consumer;
|
||||||
import org.apache.maven.api.annotations.Experimental;
|
import org.apache.maven.api.annotations.Experimental;
|
||||||
|
|
||||||
|
@ -27,6 +29,10 @@ import org.apache.maven.api.annotations.Experimental;
|
||||||
@Experimental
|
@Experimental
|
||||||
@Consumer
|
@Consumer
|
||||||
public class VersionResolverException extends MavenException {
|
public class VersionResolverException extends MavenException {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -2105433586719466573L;
|
||||||
|
|
||||||
public VersionResolverException(String message, Throwable cause) {
|
public VersionResolverException(String message, Throwable cause) {
|
||||||
super(message, cause);
|
super(message, cause);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue