-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W-16354625: Added required exceptions for each operation
- Loading branch information
Showing
14 changed files
with
524 additions
and
333 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
11 changes: 11 additions & 0 deletions
11
src/main/java/org/mule/extension/mulechain/internal/exception/ChatException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class ChatException extends ModuleException { | ||
|
||
public ChatException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.AI_SERVICES_FAILURE, exception); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/org/mule/extension/mulechain/internal/exception/FileHandlingException.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,15 @@ | ||
package org.mule.extension.mulechain.internal.exception; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class FileHandlingException extends ModuleException { | ||
|
||
public FileHandlingException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.FILE_HANDLING_FAILURE, exception); | ||
} | ||
|
||
public FileHandlingException(String message) { | ||
super(message, MuleChainErrorType.FILE_HANDLING_FAILURE); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/mule/extension/mulechain/internal/exception/PromptTemplateException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class PromptTemplateException extends ModuleException { | ||
|
||
public PromptTemplateException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.AI_SERVICES_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...main/java/org/mule/extension/mulechain/internal/exception/SentimentAnalyzerException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class SentimentAnalyzerException extends ModuleException { | ||
|
||
public SentimentAnalyzerException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.AI_SERVICES_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...e/extension/mulechain/internal/exception/embedding/EmbeddingStoreOperationsException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.embedding; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class EmbeddingStoreOperationsException extends ModuleException { | ||
|
||
public EmbeddingStoreOperationsException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.EMBEDDING_OPERATIONS_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/mule/extension/mulechain/internal/exception/embedding/RagException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.embedding; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class RagException extends ModuleException { | ||
|
||
public RagException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.RAG_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...in/java/org/mule/extension/mulechain/internal/exception/image/ImageAnalyzerException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.image; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class ImageAnalyzerException extends ModuleException { | ||
|
||
public ImageAnalyzerException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.IMAGE_ANALYSIS_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../java/org/mule/extension/mulechain/internal/exception/image/ImageGenerationException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.image; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class ImageGenerationException extends ModuleException { | ||
|
||
public ImageGenerationException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.IMAGE_GENERATION_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../java/org/mule/extension/mulechain/internal/exception/image/ImageProcessingException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.image; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class ImageProcessingException extends ModuleException { | ||
|
||
public ImageProcessingException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.IMAGE_PROCESSING_FAILURE, exception); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...n/java/org/mule/extension/mulechain/internal/exception/tools/ToolsOperationException.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,11 @@ | ||
package org.mule.extension.mulechain.internal.exception.tools; | ||
|
||
import org.mule.extension.mulechain.internal.error.MuleChainErrorType; | ||
import org.mule.runtime.extension.api.exception.ModuleException; | ||
|
||
public class ToolsOperationException extends ModuleException { | ||
|
||
public ToolsOperationException(String message, Exception exception) { | ||
super(message, MuleChainErrorType.TOOLS_OPERATION_FAILURE, exception); | ||
} | ||
} |
Oops, something went wrong.