A
A
artshelom2017-05-08 19:37:53
Java
artshelom, 2017-05-08 19:37:53

How to make runtime errors?

Hello.
How to make an error if the method is executed too long "unnaturally" an error popped up

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7365656c65, 2017-05-08
@73656c6565

Read about "exceptions" (try, catch). You can write an exception class yourself and inherit it from the Exception class. But then you need to build in a run timer and cut off on it. (To be honest, I myself have not come across this yet). Yes, and this might help . You need to re-read, maybe everyone has already come up with)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question