What is IllegalStateException?

前端 未结 4 2380
借酒劲吻你
借酒劲吻你 2020-12-09 08:12

I am trying to use the following Fastload API

connection ... etc is perfect.


I know exactly where it fails

 ...........
 System.out.pr         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-09 08:56

    Illegal State Exception is an Unchecked exception.

    It indicate that method has been invoked at wrong time.

    example:

    Thread t = new Thread();
    t.start();
    //
    //
    t.start();
    

    output:

    Runtime Excpetion: IllegalThreadStateException
    

    We cant start the Thread again, it will throw IllegalStateException.

提交回复
热议问题