Subject Re: [Firebird-Java] Exceptions on FBBackupManager
Author Guilherme Luis Bradasch
Thanks for the reply Roman. I'll do some parsing then. Unless there is
a better way to do a restore in Java?



On Fri, Jan 16, 2009 at 10:12 AM, Roman Rokytskyy <roman@...> wrote:
>> My problem is that if something goes wrong - for instance, if the
>> database I'm trying to replace is in use - the restoreDatabase()
>> method doesn't throw any exception - I can only see that it went wrong
>> on the console.
>> Is this a bug or the expected behaviour?
> Rather expected behaviour... Issue is that the driver throws exceptions
> when error is returned from the server. But in this case server does not
> return any error - what you see is the copy of the stdout of the gbak
> that is running on the server...
> In order to throw exceptions one would need to parse the output. This is
> not implemented yet.
> Roman