scala.compat.Platform.EOL Scala Examples

The following examples show how to use scala.compat.Platform.EOL. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
Example 1
Source File: FailureDescription.scala    From seahorse   with Apache License 2.0 5 votes vote down vote up
package ai.deepsense.commons.exception

import ai.deepsense.commons.exception.FailureCode.FailureCode

case class FailureDescription(
  id: DeepSenseFailure.Id,
  code: FailureCode,
  title: String,
  message: Option[String] = None,
  details: Map[String, String] = Map())

object FailureDescription {
  def stacktraceDetails(stackTrace: Array[StackTraceElement]): Map[String, String] = {
    import scala.compat.Platform.EOL
    Map("stacktrace" -> stackTrace.mkString("", EOL, EOL))
  }
} 
Example 2
Source File: FailureDescription.scala    From seahorse-workflow-executor   with Apache License 2.0 5 votes vote down vote up
package io.deepsense.commons.exception

import io.deepsense.commons.exception.FailureCode.FailureCode

case class FailureDescription(
  id: DeepSenseFailure.Id,
  code: FailureCode,
  title: String,
  message: Option[String] = None,
  details: Map[String, String] = Map())

object FailureDescription {
  def stacktraceDetails(stackTrace: Array[StackTraceElement]): Map[String, String] = {
    import scala.compat.Platform.EOL
    Map("stacktrace" -> stackTrace.mkString("", EOL, EOL))
  }
}