Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 11 Feb 22, 16:08 Last Post By: RobM Threads: [ Previous | Next ]
RobM

Posts: 3,948
Registered: 4-Aug-2006
OperationAbortedException(string)
Posted: 9 Feb 22, 21:08
 
In init.bsh the throw new OperationAbortedException(string) is aborting the make process but I'm not seeing the message popup. Mac OS 11.6.3 jAlbum 26.2. Tried a few skins.

The message is being shown, very briefly, in the status bar, not in a popup dialog
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: OperationAbortedException(string)
Posted: 9 Feb 22, 21:45   in response to: RobM in response to: RobM
Helpful
That's working as expected for me, both in Win11 and macOS.

ETA: Have you chosen Background mode? That gives me the result you're seeing, which isn't really surprising. In that case, it does show up in the console, though without its explanatory text - it's just a generic "aborted" message.
RobM

Posts: 3,948
Registered: 4-Aug-2006
Re: OperationAbortedException(string)
Posted: 9 Feb 22, 22:03   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
That's working as expected for me, both in Win11 and macOS.

ETA: Have you chosen Background mode? That gives me the result you're seeing, which isn't really surprising. In that case, it does show up in the console, though without its explanatory text - it's just a generic "aborted" message.

Yes, it is hidden in background mode and visible if background is turned off. Actually, having recorded the screen and looked at the frames the message doesn't show in the status bar, it is just the 'Make album name' starting.

Whilst it is not 'really surprising', though it got me fair and square, it does warrant either a note in the developers wiki or the API, or both. Before I update the wiki though I'll wait to see what David has to say, maybe there are other method calls that work differently in background mode.

As for this particular case, I will change the code to use a JOptionPane.showMessageDialog followed by OperationAbortedException().
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: OperationAbortedException(string)
Posted: 9 Feb 22, 22:11   in response to: RobM in response to: RobM
 
Won't that result in two dialog boxes, when you're in regular mode?
RobM

Posts: 3,948
Registered: 4-Aug-2006
Re: OperationAbortedException(string)
Posted: 9 Feb 22, 22:16   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
Won't that result in two dialog boxes, when you're in regular mode?
No, cos I don't pass a string, I just call OperationAbortedException()
davidekholm

Posts: 3,823
Registered: 18-Oct-2002
Re: OperationAbortedException(string)
Posted: 10 Feb 22, 18:03   in response to: RobM in response to: RobM
 
I'll ensure that the behavior is the same no matter if you build the gallery in foreground or background mode. It should pop up a dialogue if there is a message in either case.
RobM

Posts: 3,948
Registered: 4-Aug-2006
Re: OperationAbortedException(string)
Posted: 10 Feb 22, 18:07   in response to: RobM in response to: RobM
 
Thanks. And I’m still ‘so young, so trusting!’ :)
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: OperationAbortedException(string)
Posted: 10 Feb 22, 18:21   in response to: RobM in response to: RobM
 
That's one way to put it. Or...

davidekholm

Posts: 3,823
Registered: 18-Oct-2002
Re: OperationAbortedException(string)
Posted: 11 Feb 22, 15:34   in response to: JeffTucker in response to: JeffTucker
 
Now fixed in jAlbum 26.2.1 (core update)
RobM

Posts: 3,948
Registered: 4-Aug-2006
Re: OperationAbortedException(string)
Posted: 11 Feb 22, 16:08   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
That's one way to put it. Or...
See, my trust is fully justified. :)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums