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

AuthNet Error Conflicts with Swift Error Definiton #91

Open
mdewolfe opened this issue Jul 17, 2020 · 0 comments
Open

AuthNet Error Conflicts with Swift Error Definiton #91

mdewolfe opened this issue Jul 17, 2020 · 0 comments

Comments

@mdewolfe
Copy link

mdewolfe commented Jul 17, 2020

The Authorize.NET definition of Error conflicts with the Error protocol defined In Foundation.

Foundation Error (Found in Swift->Misc):

public protocol Error {
}
// AuthNetSDK->Error.h
@interface Error : NSObject {

	NSString *errorCode;
	NSString *errorText;
}

This has appeared in the past and it seems not enough care has been taken to avoid the naming collisions, see #24

This is a critical conflict since it conflicts with a Foundation protocol.

Using SDK v4.2, Targeting iOS 12, using Swift 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant