Version: dev

migration_error

Stable error · Versions and migration

Tier: stable · Kind: error · Topic: Versions and migration

JuliaTypeScriptPythonRustGo
MigrationErrorMigrationErrorMigrationErrorMigrationErrorMigrationError

Julia

struct MigrationError <: EarthSciASTError
MigrationError(message::String)
MigrationError(message)
MigrationError <: EarthSciASTError

Thrown when migrate is asked for a version pair it does not support — including every pair that crosses the 1.0.0 clean break.

Source

TypeScript

class MigrationError extends EsmDiagnosticError
new MigrationError(message: string): MigrationError

Error thrown when migration fails.

Source

Python

class MigrationError(EarthSciAstError)

Raised when an ESM document cannot be migrated to the requested version.

Derives from EarthSciAstError like every other exception in this package, so except EarthSciAstError catches it.

Source

Rust

pub struct MigrationError {
    pub message: String,
    pub from_version: String,
    pub to_version: String,
}

Migration error that occurs when migration fails.

Carries the endpoint versions alongside the message so a caller can report the pair without re-deriving it (Go’s MigrationError mirrors these fields).

Source · Rust docs

Go

type MigrationError struct {
	Message     string
	FromVersion string
	ToVersion   string
}

func (e *MigrationError) Error() string

MigrationError is returned when a migration cannot be performed. It carries the endpoint versions alongside the message so a caller can report the pair without re-deriving it (mirrors the Rust binding’s MigrationError fields).

Methods

func (e *MigrationError) Error() string

Source · Go docs