Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODE RUB: AIFiles Exception Classes Update v2.10.1 #558

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@ public static TheoryData DependencyValidationExceptions()
{
new LocalFileValidationException(someInnerException),
new LocalFileDependencyValidationException(someInnerException),
new AIFileValidationException(someInnerException),
new AIFileDependencyValidationException(someInnerException)

new AIFileValidationException(
message: "AI file validation error occurred, fix errors and try again.",
someInnerException),

new AIFileDependencyValidationException(
message: "AI file dependency validation error occurred, contact support.",
someInnerException)
};
}

Expand All @@ -59,8 +65,14 @@ public static TheoryData DependencyExceptions()
{
new LocalFileDependencyException(someInnerException),
new LocalFileServiceException(someInnerException),
new AIFileDependencyException(someInnerException),
new AIFileServiceException(someInnerException),

new AIFileDependencyException(
message: "AI file dependency error occurred, contact support.",
someInnerException),

new AIFileServiceException(
message: "AI file service error occurred, contact support.",
someInnerException),
};
}

Expand All @@ -70,8 +82,13 @@ public static TheoryData AIFileServiceDependencyExceptions()

return new TheoryData<Xeption>
{
new AIFileDependencyException(someInnerException),
new AIFileServiceException(someInnerException),
new AIFileDependencyException(
message: "AI file dependency error occurred, contact support.",
someInnerException),

new AIFileServiceException(
message: "AI file service error occurred, contact support.",
someInnerException),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class AIFileDependencyException : Xeption
{
public AIFileDependencyException(Xeption innerException)
: base(
message: "AI file dependency error occurred, contact support.",
innerException: innerException)
{ }

public AIFileDependencyException(string message, Xeption innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class AIFileDependencyValidationException : Xeption
{
public AIFileDependencyValidationException(Xeption innerException)
: base(
message: "AI file dependency validation error occurred, contact support.",
innerException: innerException)
{ }

public AIFileDependencyValidationException(string message, Xeption innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class AIFileServiceException : Xeption
{
public AIFileServiceException(Xeption innerException)
: base(
message: "AI file service error occurred, contact support.",
innerException: innerException)
{ }

public AIFileServiceException(string message, Xeption innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class AIFileValidationException : Xeption
{
public AIFileValidationException(Xeption innerException)
: base(
message: "AI file validation error occurred, fix errors and try again.",
innerException: innerException)
{ }

public AIFileValidationException(string message, Xeption innerException)
: base(message, innerException) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class ExcessiveCallAIFileException : Xeption
{
public ExcessiveCallAIFileException(Exception innerException)
: base(
message: "Excessive call error occurred, limit your calls.",
innerException: innerException)
{ }

public ExcessiveCallAIFileException(string message, Exception innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class FailedAIFileServiceException : Xeption
{
public FailedAIFileServiceException(Exception innerException)
: base(
message: "Failed AI file service error occurred, contact support.",
innerException: innerException)
{ }

public FailedAIFileServiceException(string message, Exception innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class FailedServerAIFileException : Xeption
{
public FailedServerAIFileException(Exception innerException)
: base(
message: "Failed AI file server error occurred, contact support.",
innerException: innerException)
{ }

public FailedServerAIFileException(string message, Exception innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,8 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class InvalidAIFileException : Xeption
{
public InvalidAIFileException()
: base(
message: "Invalid AI file error occurred, fix errors and try again.")
{ }

public InvalidAIFileException(Exception innerException)
: base(
message: "Invalid AI file error occurred, fix errors and try again.",
innerException: innerException)
public InvalidAIFileException(string message)
: base(message)
{ }

public InvalidAIFileException(string message, Exception innerException)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class InvalidConfigurationAIFileException : Xeption
{
public InvalidConfigurationAIFileException(Exception innerException)
: base(
message: "Invalid AI file configuration error occurred, contact support.",
innerException: innerException)
{ }

public InvalidConfigurationAIFileException(string message, Exception innerException)
: base(message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class NotFoundAIFileException : Xeption
{
public NotFoundAIFileException(Exception innerException)
: base(
message: "Not found AI file error occurred, fix errors and try again.",
innerException: innerException)
{ }

public NotFoundAIFileException(string message, Exception innerException)
: base(message: message, innerException)
{ }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public partial class NullAIFileException : Xeption
{
public NullAIFileException()
: base(
message: "Ai file is null.")
public NullAIFileException(String message)
: base(message)
{ }

public NullAIFileException(string message, Exception innerException)
: base(message, innerException)
{ }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ namespace Standard.AI.OpenAI.Models.Services.Foundations.AIFiles.Exceptions
{
public class UnauthorizedAIFileException : Xeption
{
public UnauthorizedAIFileException(Exception innerException)
: base(
message: "Unauthorized AI file request, fix errors and try again.",
innerException: innerException)
{ }

public UnauthorizedAIFileException(string message, Exception innerException)
: base(message, innerException) { }
}
Expand Down
Loading