kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bongyeon Kim <bongyeon....@gmail.com>
Subject Re: getting Error name
Date Mon, 24 Feb 2014 06:19:00 GMT
That’s what I want.

Thanks, Jun



On Feb 24, 2014, at 2:09 PM, Jun Rao <junrao@gmail.com> wrote:

> You can use ErrorMapping.exceptionFor(short), which returns a Throwable.
> 
> Thanks,
> 
> Jun
> 
> 
> On Sun, Feb 23, 2014 at 5:43 PM, Bongyeon Kim <bongyeon.kim@gmail.com>wrote:
> 
>> Hi, everyone.
>> 
>> I'm using Kafka 0.8 with Java API.
>> 
>> 
>> Is there any Error Mapping class or constants? I found Kafka Protocol page
>> in wiki. There is error code table, but I want to get error name by error
>> code in Java Api.
>> 
>> For example, I can getting error code by *fetchResponse.errorCode(TOPIC,
>> PARTITION), *then How can I get Error Name?
>> 
>> 
>> Thanks in advance.
>> --
>> *Sincerely*
>> *,**Bongyeon Kim*
>> 
>> Java Developer & Engineer
>> Seoul, Korea
>> Mobile:  +82-10-9369-1314
>> Email:  bongyeonkim@gmail.com
>> Twitter:  http://twitter.com/tigerby
>> Facebook:  http://facebook.com/tigerby
>> Wiki: http://tigerby.com
>> 


Mime
View raw message