question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not throw exception in order producer demo.

See original GitHub issue

UnsupportedEncodingException should not be throw out in main function.

public static void main(String[] args) throws UnsupportedEncodingException 

https://github.com/apache/rocketmq/blob/develop/example/src/main/java/org/apache/rocketmq/example/ordermessage/Producer.java

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
alexcao2018commented, Sep 20, 2022

Please assigned it to me, i want to try it.

0reactions
lizhanhuicommented, Sep 23, 2022

UnsupportedEncodingException should not be throw out in main function.

What is the rational behind this decision?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Throw Exceptions in Java - Rollbar
Throwing an exception is as simple as using the "throw" statement. You then specify the Exception object you wish to throw. Every Exception...
Read more >
[GitHub] [rocketmq] lizhanhui opened a new pull request, #5188 ...
[GitHub] [rocketmq] lizhanhui opened a new pull request, #5188: Revert " [ISSUE #5138] Do not throw exception in order producer demo".
Read more >
Exception handling (Task Parallel Library) - Microsoft Learn
Explore exception handling using the Task Parallel Library (TPL) in .NET. See nested aggregate exceptions, inner exceptions, unobserved task ...
Read more >
Kafka Producer : Handle Exception in Async Send with Callback
Out there you're going to see that multiple exceptions can be thrown at the in submitting call (instead of returning a future and...
Read more >
7 Common Mistakes You Should Avoid When Handling Java ...
Handling an exception in Java is one of the most common but not necessarily one of the easiest tasks. Here are several common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found