Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
MapleException.MapleException - MapleException class constructor
Calling Sequence
MapleException(MapleException me)
MapleException(Exception e)
MapleException(String msg)
MapleException(String msg, Object o1)
MapleException(String msg, Object o1, Object o2)
Parameters
me
-
MapleException to copy
e
Exception to copy
msg
error message
o1
data to pass with the error
o2
Description
MapleException is the constructor for the MapleException class. This class is used in Java External Calling (see define_external) and Java Open Maple (see OpenMaple) for passing errors between Maple and Java.
If MapleException is given an existing MapleException me, the new MapleException is a copy of me.
Giving MapleException an existing Exception e, is equivalent to calling MapleException(e.getMessage()).
If a String msg is passed, the MapleException is created using msg as the error message.
If a String msg and one or two Objects (o1, o2) are passed, the MapleException is created using msg as the error message. The data objects are inserted into the error message, replacing %1 and %2. This behavior attempts to mimic that of error. The Object o1 must be one of java.lang.Boolean, java.lang.Byte, java.lang.Character, java.lang.Double, java.lang.Float, java.lang.Integer, java.lang.Long, java.lang.Short, or java.lang.String.
See Also
define_external, ExternalCalling, OpenMaple, OpenMaple/Java/API
Download Help Document