ThriftId thriftId = exceptionAnnotations[i].getAnnotation(ThriftId.class); if (thriftId != null) { checkArgument(!exceptions.containsKey(thriftId.value()), "ThriftMethod [%s] exception list contains multiple values for field ID [%s]", methodName(method), thriftId.value()); checkArgument(!exceptionTypes.contains(exception), "ThriftMethod [%s] exception list contains multiple values for type [%s]", methodName(method), exception.getSimpleName()); exceptions.put(thriftId.value(), catalog.getThriftType(exception)); exceptionTypes.add(exception);
@ThriftDocumentation("Send a formatted message to Scribe.") @ThriftOrder(2) @ThriftMethod DriftResultCode logFormattedMessage(String format, Map<String, DriftLogEntry> messages, int maxSize) throws @ThriftId(1) ScribeDataException, @ThriftId(2) ScribeTransportException, @ThriftId(3) ScribeMessageException;
@ThriftDocumentation("Send a formatted message to Scribe.") @ThriftOrder(2) @ThriftMethod DriftResultCode logFormattedMessage(String format, Map<String, DriftLogEntry> messages, int maxSize) throws @ThriftId(1) ScribeDataException, @ThriftId(2) ScribeTransportException, @ThriftId(3) ScribeMessageException;
@ThriftMethod(exception = @ThriftException(id = 5, type = ExceptionA.class)) void testExceptionMixedAnnotationStyle() throws ExceptionA, @ThriftId(6) ExceptionB; }
@ThriftMethod(exception = @ThriftException(id = 5, type = ExceptionA.class)) void testExceptionMixedAnnotationStyle() throws ExceptionA, @ThriftId(6) ExceptionB; }