-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from spdx/morefixes
Additional fixes for issues found in SonarCloud
- Loading branch information
Showing
12 changed files
with
98 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* Copyright (c) 2024 Source Auditor Inc. | ||
*/ | ||
package org.spdx.core; | ||
|
||
/** | ||
* Runtime Exception wrapper for SPDX exceptions (cause field) | ||
* | ||
* @author Gary O'Neall | ||
* | ||
*/ | ||
public class RuntimeSpdxException extends RuntimeException { | ||
|
||
|
||
/** | ||
* | ||
*/ | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* @param message exception message | ||
*/ | ||
public RuntimeSpdxException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* @param cause SPDX analysis cause | ||
*/ | ||
public RuntimeSpdxException(InvalidSPDXAnalysisException cause) { | ||
super(cause); | ||
} | ||
|
||
/** | ||
* @param message exception message | ||
* @param cause SPDX analysis cause | ||
*/ | ||
public RuntimeSpdxException(String message, InvalidSPDXAnalysisException cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* @param message exception message | ||
* @param cause SPDX analysis cause | ||
* @param enableSuppression | ||
* @param writableStackTrace | ||
*/ | ||
public RuntimeSpdxException(String message, Throwable cause, | ||
boolean enableSuppression, boolean writableStackTrace) { | ||
super(message, cause, enableSuppression, writableStackTrace); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.