@Override public NSErrorCode getErrorCode() { NSErrorCode code = null; try { code = NSCocoaErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } /*<methods>*/
@WeaklyLinked public static NSErrorCode valueOf(long n) { for (/*<name>*/NSCocoaErrorCode/*</name>*/ v : values()) { if (v.n == n) { return v; } } // NSCoreDataError codes don't have their own domain. They are added to Cocoa error codes. for (NSCoreDataErrorCode v : NSCoreDataErrorCode.values()) { if (v.value() == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NSCocoaErrorCode/*</name>*/.class.getName()); } }
@WeaklyLinked public static NSErrorCode valueOf(long n) { for (/*<name>*/NSCocoaErrorCode/*</name>*/ v : values()) { if (v.n == n) { return v; } } // NSCoreDataError codes don't have their own domain. They are added to Cocoa error codes. for (NSCoreDataErrorCode v : NSCoreDataErrorCode.values()) { if (v.value() == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/NSCocoaErrorCode/*</name>*/.class.getName()); } }
public NSErrorCode getErrorCode() { NSErrorCode code = null; try { code = NSCocoaErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } /*<methods>*/
@Override public NSErrorCode getErrorCode() { NSErrorCode code = null; try { code = NSCocoaErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } /*<methods>*/
public NSErrorCode getErrorCode() { NSErrorCode code = null; try { code = NSCocoaErrorCode.valueOf(getCode()); } catch (IllegalArgumentException e) { // ignore } return code; } /*<methods>*/