Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M MTSA
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lafhis
  • MTSA
  • Wiki
    • Devs
  • outputmessages

outputmessages · Changes

Page history
Create devs/outputmessages authored Jun 17, 2025 by Pablo Laciana's avatar Pablo Laciana
Show whitespace changes
Inline Side-by-side
Showing with 46 additions and 0 deletions
+46 -0
  • devs/outputmessages.md devs/outputmessages.md +46 -0
  • No files found.
devs/outputmessages.md 0 → 100644
View page @ 07c52e4c
# Output user messages
In this section you will find how to properly output information, warning or error messages for the end user.
## Diagnostics Class
You can use a special class designed to output warning or fatal error messages to the user.
The code is in the following package and class:
```java
package ltsa.lts;
public class Diagnostics {...}
```
In order to use Diagnostics, you must first initialize the default output option.
In case you are using the UI, you need to initialize it with the LTSOuput used by the main window.
```java
Diagnostics.init(out);
```
From _MTSA> Options> Treat Warnings as errors_ you can force warnings to raise an exception.
### Warning and Fatal
Fatal errors can be used just with a string message or marking the symbol or position of the error.
Warning messages can be used just with the string message.
## log
In some places it is also use the java logger. It is not recommended for end user, only for techinical log output.
```java
import org.apache.log4j.Logger;
private Logger logger = Logger.getLogger(this.getClass().getName());
logger.error("Scheduler factory not found");
```
## System.out.println()
This practice is discourage. Use only for testing and debugging purposes.
---
Clone repository
  • Developer
  • End User
  • devs
    • outputmessages
  • enduser
    • DCS
    • fltl
    • fsp_keywords
    • helloworld
    • reactiveSynthesis
    • supervisoryControl
  • Home