I have a custom Run time exception i throw it in server side. What I want is to re-throw it and catch it in client side. what do I do? I have searched it but I didn't find anything. All I found were "RMI" and "GWT".
Is it possible to throw an exception in server and catch and handle it in client in java
561 views Asked by maryam At
1
There are 1 answers
Related Questions in EXCEPTION
- What should i use Exceptions or Monads for handle if service occur a problem?
- Python Requests: Handling Exceptions and Ensuring Server Response
- What is a better way to allow no user input while also preventing non-number inputs
- New error on random number assigned to local variable , Rails
- spring error exception with oauth2 and securityconfig
- Exception thrown: 'System.InvalidOperationException' in Microsoft.Data.SqlClient.dll
- How to fix this Row nested in Column exception issue in Flutter?
- GDI - Why the printing StartPage() function works in 32 bit but raises an exception in 64 bit?
- Handling Invalid Credential or Login error Exception in Python for Network Devices
- Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1Error:
- .NET 6 Custom Nuget package referencing other packages - Do I have to include the other packages myself?
- How to prevent Unity from catching and ignoring ALL exceptions
- My Google Apps Script renames all files in a folder from data in a spreadsheet. Can someone explain why it returns an exception error?
- Python (pylint): Catching general exceptions in validation procedures
- Need a simple example how to catch a data type error en C++
Related Questions in SERVER
- Sending data from C++ server to React.js client
- Deploy Flutter and Laravel php mobile app on the host server
- Protect Server Actions with Next Auth in Next JS 14
- Cannot interact with netcat server over distance
- Facing fatal errors while running "yum update" command on CentOS 7/Cloudlinux 7
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- How to run GRPC and REST server on same port in Go?
- Share files from the server without data or internet usage
- Django Not Sending Tasks to Celery in Production
- Install Postfix Mail Server
- Is it viable proxying all my mobile apps requests, to some kind knowing that a request is coming from a secure source
- How does a server handle multiple requests, and how does is know where to send which response?
- Trying to launch batch file from powershell, and immediately closes
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Developing on a remote server an app symfony
Related Questions in CLIENT
- Echo behaviour of Microsoft Windows Telnet Client
- Client in C# using Sockets
- NEXTJS14 DRIZZLE : Async issue when trying to post data from component into DB
- how to get rid of cannot access a closed pipe exception in C#
- Running a web application from external network client pc
- How to communicate between a server side and client side component in Next.js
- Server side rendering and client side rendering
- Can not send data from client to server
- Flask: Sending File Between Two Servers Results in Empty `request.files` on Receiver Server
- GittyUp - Git-Client: Unable to see the changed files list on the right of the `Diff` window
- my epoll server can not detect client disconnection
- getting client IP address in a webserver
- Socket returning empty data
- Error after ending code that use tkinter with thread
- HTML file and client side storage Javascript related question, is it possible?
Related Questions in THROW
- why throw inside of an setTimeout, located inside a promise, doesn't change state and result of the output promise?
- why promise has a weird precedence for errors in js?
- why throw should be always between curly brace?
- Should I use noexcept specifier and noexcept operator in most functions in C++?
- 'Is not' operator with custom 'throw exception' helper method makes variable unnasigned
- does throwing an error inside a do block leads to the catch block?
- What is Negative_size exception in Bjarne's book?
- Spring integration: exception is not thrown to error channel
- How is 'return new Error' different from 'throw'
- I'm not able to detect throw in Xunit testing in .net, my test is terminating at throw?
- Erlang using action id, wait function is not working
- Error: Cannot find module 'C:\Users\my pc\OneDrive\Desktop\react-scripts\bin\react-scripts.js' , code: 'MODULE_NOT_FOUND',
- Is this expected behavior for throw in ruby?
- Error: Route.get() requires a callback function but got a [object Object] due to middleware
- "node:internal/modules/cjs/loader:1080 throw err; ^"
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It is not possible directly, but some frameworks like RMI are capable of serializing the exception over network and then re-throwing on the client side, directly, or more often wrapped into some kind of RemoteException. This is one of the reasons why Java exceptions are serializable.
If you are using such a framework, it is possible to throw an exception on one end and get a remote exception on another end of the communication channel.