I have a simple macro that plays sounds via Syrinscape
[h, if(getLibProperty("SoundsEnabled") == "1"), code : {
[h : baseUrl = baseUrl + "/play/?auth_token=" + getLibProperty("SoundAuthToken")]
[h : REST.get(baseUrl)]
}]
Every now and then, I get an error that looks like...
Unable to process function "REST.get", An Exception has occurred: java.net.SocketTimeoutException: timeout
Is there any way to trap for this error and if it happens, just go on and don't play the sound but let the rest of the macro continue to process?
REST error and how to trap for it
Thoughts, Help, Feature Requests, Bug Reports, Developing code for...
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Jump to
- General
- ↳ Announcements
- ↳ Ideas for New Applications
- ↳ General Discussion
- ↳ Developer Notes
- ↳ Java Programming Info
- ↳ User Creations
- ↳ Requests for HELLLLP!
- ↳ Tilesets, Token Libraries, and Complete Maps
- ↳ Token Libraries
- ↳ Tilesets/Graphics for Map-making
- ↳ Complete Maps
- ↳ Campaign Frameworks
- ↳ D&D 5e Frameworks
- ↳ D&D 4e Frameworks
- ↳ D&D 3.5/Pathfinder 1e Campaign Macros
- ↳ D&D 3.5 & PF1e Framework
- ↳ Shadowrun 4e Frameworks
- ↳ Savage Worlds Frameworks
- ↳ Published Module Support
- ↳ Tutorials
- ↳ Graphics, Images, Tokens, Maps
- ↳ Drop-In Macros and Scripts
- ↳ Campaign Frameworks
- ↳ Drop-In Macro Resources
- ↳ Links & External Resources
- ↳ Looking For Group
- ↳ "Living" Campaigns
- ↳ Dungeons and Dragons
- ↳ Savage Worlds
- ↳ WoD
- ↳ Wargaming
- ↳ Documentation Requests/Discussion
- ↳ Session Report-Back
- Tools
- ↳ MapTool
- ↳ How To
- ↳ Macros
- ↳ Feature Requests
- ↳ Resolved
- ↳ Bug Reports
- ↳ Resolved
- ↳ WIP - User FAQ
- ↳ Testing
- ↳ MapTool 1.4
- ↳ TokenTool
- ↳ DiceTool
- ↳ InitiativeTool
- ↳ CharacterTool
- ↳ Support: d20 D&D
- ↳ Support: D&D 4e
- ↳ Support: Hero System
- ↳ Support: Savage Worlds
- ↳ Support: GURPS
- Other
- ↳ RPTools Sightings
- ↳ Running Campaigns
- ↳ Thiera's College of Adventurers
- ↳ Age of Might
- ↳ Scales of War
- ↳ Renwold
- ↳ Dead Men Walking
- ↳ Dark Sun - 4th Edition
- ↳ Warhammer Fantasy Roleplay
- ↳ Return of Uchly Namen
- ↳ Insert Campaign Here
- ↳ Antium
- ↳ The Mystic Moon
- ↳ World of Lagal
- ↳ GangerRun
- ↳ FB Scales of War
- ↳ Sellswords of Eberron
- ↳ Archive
- ↳ Orbs of Chaos
- ↳ World of Omegus
- ↳ Keep on the Shadowfell - 4E
- ↳ Rise of the Runelords
- ↳ Aurith In The Age Of Steam
- ↳ Widdershins
- ↳ Nos's Pathfinder Campaign
- ↳ Falcons Hollow
- ↳ Verwirrte Welten
- ↳ With it or on it
- ↳ Starter Set - Jeff