-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logging): improve log message, move InvalidInboundConnectorDefin…
…itionException to runtime-core
- Loading branch information
1 parent
c27a756
commit 8c0290e
Showing
3 changed files
with
68 additions
and
41 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...a/io/camunda/connector/runtime/core/error/InvalidInboundConnectorDefinitionException.java
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,53 @@ | ||
/* | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
* under one or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information regarding copyright | ||
* ownership. Camunda licenses this file to you under the Apache License, | ||
* Version 2.0; you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.camunda.connector.runtime.core.error; | ||
|
||
import java.io.Serial; | ||
|
||
/** | ||
* Represents an unchecked exception indicating an invalid definition for an inbound connector. This | ||
* exception is thrown when the connector's definition does not meet the expected format or | ||
* standards. | ||
*/ | ||
public class InvalidInboundConnectorDefinitionException extends RuntimeException { | ||
|
||
@Serial private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* Constructs a new exception with the specified detail message. This constructor is typically | ||
* used when the error message itself is sufficient to describe the problem encountered. | ||
* | ||
* @param message The detailed message that explains the reason for the exception. The detail | ||
* message is saved for later retrieval by the {@link #getMessage()} method. | ||
*/ | ||
public InvalidInboundConnectorDefinitionException(final String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructs a new exception with the specified detail message and cause. This constructor is | ||
* used when an underlying cause for the exception is available, providing more context for | ||
* troubleshooting. | ||
* | ||
* @param message The detailed message that explains the reason for the exception. | ||
* @param cause The cause of the exception (which is saved for later retrieval by the {@link | ||
* #getCause()} method). A null value indicates that the cause is nonexistent or unknown. | ||
*/ | ||
public InvalidInboundConnectorDefinitionException(final String message, final Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
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
38 changes: 0 additions & 38 deletions
38
.../main/java/io/camunda/connector/api/error/InvalidInboundConnectorDefinitionException.java
This file was deleted.
Oops, something went wrong.