All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.halcony.argparse.ParserExceptions.scala Maven / Gradle / Ivy

Go to download

A re-imagined implementation of the handy python-argparse functionality for scala

There is a newer version: 2.0.3
Show newest version
package de.halcony.argparse

import scala.annotation.nowarn

class ParsingException(message: String, help: String) extends Exception {

  override def getMessage: String = message

  def getHelp: String = help

  @nowarn
  def getContextHelp: String = {
    s"""$message
       |
       |$help
       |""".stripMargin
  }

}

class UnknownValue(message: String) extends Exception {

  override def getMessage: String = message

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy