Skip to content

A library to simple-message custom, fatal error, error, information, success and warning.

License

Notifications You must be signed in to change notification settings

thiagogarbazza/simple-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-message

A library to simple-message custom, fatal error, error, information, success and warning.

Build Status Coverage Status Coverage Status

Install

Available in the Maven Central repository.

Add a dependency to com.github.thiagogarbazza:simple-message in your project.

Example using maven:

<dependency>
  <groupId>com.github.thiagogarbazza</groupId>
  <artifactId>simple-message</artifactId>
  <version>1.0.0</version>
</dependency>

Usage samples

Simple usage:

public SimpleMessage example() {
  return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key a");
}

Simple usage using java.text.MessageFormat:

public SimpleMessage exampleUsingMessageFormat() {
  return new SimpleMessage(SimpleMessageType.INFORMATION, "key.a", "Message to key {0} by {1}", "a", "Thiago");
}

About

A library to simple-message custom, fatal error, error, information, success and warning.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages