github.com/tursom/GoCollections@v0.3.10/exceptions/PackageException.go (about)

     1  /*
     2   * Copyright (c) 2022 tursom. All rights reserved.
     3   * Use of this source code is governed by a GPL-3
     4   * license that can be found in the LICENSE file.
     5   */
     6  
     7  package exceptions
     8  
     9  import (
    10  	"github.com/tursom/GoCollections/lang"
    11  )
    12  
    13  type PackageException = lang.PackageException
    14  
    15  func NewPackageException(err any, config *ExceptionConfig) *PackageException {
    16  	return lang.NewPackageException(err, config.AddSkipStack(1))
    17  }
    18  func UnpackException(err any) any {
    19  	return lang.UnpackException(err)
    20  }