mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-30 17:47:54 +08:00 
			
		
		
		
	refactor(connectors): refactor propagation of validation and not implemented errors (#419)
This commit is contained in:
		| @ -160,7 +160,10 @@ impl ResponseError for ApplicationError { | ||||
| } | ||||
|  | ||||
| pub fn http_not_implemented() -> actix_web::HttpResponse<BoxBody> { | ||||
|     ApiErrorResponse::NotImplemented.error_response() | ||||
|     ApiErrorResponse::NotImplemented { | ||||
|         message: api_error_response::NotImplementedMessage::Default, | ||||
|     } | ||||
|     .error_response() | ||||
| } | ||||
|  | ||||
| #[derive(Debug, thiserror::Error)] | ||||
| @ -196,7 +199,7 @@ pub enum ApiClientError { | ||||
|     UnexpectedServerResponse, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, thiserror::Error)] | ||||
| #[derive(Debug, thiserror::Error, PartialEq)] | ||||
| pub enum ConnectorError { | ||||
|     #[error("Error while obtaining URL for the integration")] | ||||
|     FailedToObtainIntegrationUrl, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arjun Karthik
					Arjun Karthik