on config failure

Discussion in 'Plugin Development' started by carlgo11, Mar 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    carlgo11

    when a config fails to load there is a exception outprinted to the console. Is this runned inside bukkit or in the plugin?
    If it's runned from the plugin, can I surround it with a try-catch and make it warn the players then?
     
  2. Offline

    Necrodoom

    Moo-ved to correct section.
     
    amhokies likes this.
  3. Offline

    Rocoty

    carlgo11 Maybe. It depends on your particular case.
     
  4. Offline

    carlgo11

  5. Offline

    RawCode

    you have my level 81 blessing to use try-catch, go with blessing and just write your code without asking for outcome before actually testing self.
     
  6. Offline

    carlgo11

    I'm not asking for the outcome. I'm asking if I can do this. And if I can, where I can do it.

    From what I understand the config is loaded with magic in the bukkit code. I may be wrong though.
     
  7. Offline

    RawCode

    you still have my level 81 blessing, go and add trycatch to your code.
     
  8. Offline

    Alshain01

    Try/catch is for handling exceptions you expect, not hiding ones you don't. The exception is being thrown because your doing something wrong, and since we can't see your code we can't help you figure out what.
     
Thread Status:
Not open for further replies.

Share This Page