Re: getting Error name

2014-02-23 Thread Bongyeon Kim
That’s what I want. Thanks, Jun On Feb 24, 2014, at 2:09 PM, Jun Rao wrote: > You can use ErrorMapping.exceptionFor(short), which returns a Throwable. > > Thanks, > > Jun > > > On Sun, Feb 23, 2014 at 5:43 PM, Bongyeon Kim wrote: > >> Hi, everyone. >> >> I'm using Kafka 0.8 with Java AP

Re: getting Error name

2014-02-23 Thread Jun Rao
You can use ErrorMapping.exceptionFor(short), which returns a Throwable. Thanks, Jun On Sun, Feb 23, 2014 at 5:43 PM, Bongyeon Kim 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

getting Error name

2014-02-23 Thread Bongyeon Kim
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, PARTIT